摘要:
1,登陆root帐号 2,cd /etc/yum.repo.d 3,mv CentOS-Base.repo CentOS-Base.repo.bak4,wget http://mirrors.aliyun.com/repo/Centos-7.repo5,mv Centos-7.repo CentOS 阅读全文
posted @ 2018-03-05 22:47
ianduin
阅读(9415)
评论(0)
推荐(0)
摘要:
在connect()方法中传入charset='utf8'参数即可。 阅读全文
posted @ 2018-03-05 17:57
ianduin
阅读(215)
评论(0)
推荐(0)
摘要:
python配置文件读取 阅读全文
posted @ 2018-03-05 17:47
ianduin
阅读(5633)
评论(0)
推荐(1)
摘要:
使用python查询mysql数据库的时候,默认查询结果没有返回表字段名称,不方便使用。为了方便使用一般会选择将查询结果加上字段名称以字典组的方式返回查询结果。 实现如下: 详细原理参考:https://docs.djangoproject.com/en/2.0/topics/db/sql/#exe 阅读全文
posted @ 2018-03-05 17:36
ianduin
阅读(5578)
评论(0)
推荐(0)

浙公网安备 33010602011771号