6 1 人 :使用一个字典来存储一个熟人的信息,包括名、姓、年龄和居住的城市。该字典应包含键first_name 、last_name 、age 和city 。将存储在该字典中的每项信息都打印出来。 6 2 喜欢的数字 :使用一个字典来存储一些人喜欢的数字。请想出5个人的名字,并将这些名字用作字典中 ...
分类:
编程语言 时间:
2019-05-16 09:40:47
阅读次数:
464
Glaciers are slowly moving masses of ice that have accumulated on land in areas where more snowfalls during a year than melts. Snow falls as hexagonal ...
分类:
其他好文 时间:
2019-05-15 23:59:31
阅读次数:
256
mysql一直连接不上我的数据库,输入密码也进不去mysql. 报连接不上服务的错误。 Can 't connect to local MySQL server through socket '/tmp/mysql.sock '(2) 我就查看了一下mysql的日志 cat /var/log/mys ...
分类:
数据库 时间:
2019-05-15 11:07:28
阅读次数:
188
Unleashing Your True PotentialIt’s easy to let life’s challenges sap your energy, dissipate your motivation and give you a pessimistic outlook, but th ...
分类:
其他好文 时间:
2019-05-15 09:59:15
阅读次数:
145
二进制分组SB做法没意思还难写还可能会被卡常其实是我不会写。用一种比较优秀的O(Tnlogn)做法,只需要做2次dijkstra。对原图做一次、对反图做一次,然后记录每个点的最短路是从k个源点中的哪个转移过来的。然后枚举每条边,若两边转移过来的源点不同,则用d1+w[i]+d2来更新答案即可。 #i ...
分类:
其他好文 时间:
2019-05-13 22:53:05
阅读次数:
144
一 . 需求 仿照Django中的admin , 开发了自己的stark组件,实现类似数据库客户端的功能,对数据进行增删改查 . 二 . 实现思路 1 . 在settings配置里分别注册三个APP 注 : python manage.py startapp app02 创建新项目(stark 同理 ...
分类:
其他好文 时间:
2019-05-13 16:01:25
阅读次数:
142
https://tutorialedge.net/golang/the-go-init-function/ There are times, when creating applications in Go, that you need to be able to set up some form ...
分类:
其他好文 时间:
2019-05-10 16:24:47
阅读次数:
143
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/lampp/var/mysql/mysql.sock' (2) 原因:系统盘满了 [root@localhost opt]# df -hFiles ...
分类:
数据库 时间:
2019-05-07 01:28:46
阅读次数:
311
如果添加 -h127.0.0.1则可以登入数据库,说明数据库是在运行的。 通过 find 命令查找 mysql.sock 文件,发现文件不存在,我的理解是 mysql 创建该文件的时候失败了。 网上查找后尝试如下方法,可以解决 : 修改数据库配置文件 /etc//my.cnf , 对应修改相应 se ...
分类:
数据库 时间:
2019-05-06 14:21:54
阅读次数:
318
链接:https://pintia.cn/problem-sets/994805046380707840/problems/994805068539215872 题解:很简单的并查集,这可能是我在PTA上写过的最长的代码了 代码: ...
分类:
其他好文 时间:
2019-05-04 14:39:20
阅读次数:
129