Pythondjango.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3. 今天在linux系统部署程序时报错,django2.2 mysql 8.0 错误信息如下: python manage.py makemigrations 首先想到的是,升级mysqlclient版本... 2019-06-18评论django python 阅读全文
Pythondeepin linux 安装python-ldap找不到lber.h的解决方法 pip install python-ldap安装报错 通过google搜索 得知解决办法如下: sudo apt-get install libldap2-dev libsasl2-dev 记录一下... 2019-06-08评论python python-ldap 阅读全文
mysqld初始化报错找不到libnuma.so.1和libaio.so.1 今天在做mysql5.7初始化库的时候报错,内容如下: 执行命令:mysqld --defaults-file=/data/mysql3306/mysql3306.cnf --initialize 报... 2019-03-29BLOG评论initialize mysql 阅读全文
git执行pull命令时报错 今天在用git拉取代码的时候报错,内容如下: You asked to pull from the remote 'origin', but did not specify a branch. Bec... 2019-03-27BLOG评论git master 阅读全文
BLOGxargs: Warning: a NUL character occurred in the input. 今天遇到一个问题,批量删除redis里的keys报错。原因是java程序在做序列化的时候生成了一些特殊的key! redis数据如下: 批量删除的脚本如下: redis-cli -h 192.168.... 2019-03-26评论lua redis 阅读全文
BLOGPython中字典的value是列表的运用 今天群里一个朋友问了一个python问题,将列表a里的内容 转换成列表b那种格式,示例如下 a=[{'table': u'games', 'value... 2019-03-23评论list python 阅读全文
BLOG推荐Python爬取DWR框架的网站 最近有个爬取竟台数据的需求,在写python代码的时候,遇到了对方是DWR框架网站。用Chrome开发者工具一看,Post提交参数一堆字典,头都大了。 网站Hearders and Request b... 2019-03-22评论DWR python 阅读全文
Python读取文件中unicode编码转成中文显示 最近在写爬虫的时候,遇到一个爬去的返回结果里有unicode编码的字符串,遇到的问题是:直接print显示中文,保存到文件里就是乱码。 通过查找,解决办法如下: eval("u"+"\'"+unico... 2019-03-22Share评论eval python 阅读全文
BLOGpython打印love图 分享两段代码: 打印love图: print('\n'.join([''.join([(u'I@Love@You爱'[(x-y)%11]if((x*0.05)**2+(y*0.1)**2-1)**3-... 2019-01-11评论pyinstall python 阅读全文