随笔分类 -  Python

摘要:一顿操作各种无脑安装: # 环境: Ubuntu 18.04.1 LTS x86_64 django2.0 Python 3.6.9 (default, Apr 18 2020, 01:56:04) # 安装celery pip3 install celery==4.4.6 pip3 install 阅读全文
posted @ 2020-07-24 11:47 月月coding 阅读(551) 评论(2) 推荐(0)
摘要:导出pip安装的所有的包: pip freeze > piplist.txt 在新的环境中安装导出的包 pip install -r piplist.txt astroid==2.3.3autopep8==1.5beautifulsoup4==4.9.0certifi==2020.4.5.1char 阅读全文
posted @ 2020-05-05 18:26 月月coding 阅读(7907) 评论(0) 推荐(0)
摘要:一、 最近使用python写入文件时,出现了如下的错误: 但是content的内容是unicode编码,不知道怎么和gbk扯上了关系,对content使用encode()和decode(),用gbk,utf-8,gb2312各种编码解码都没有效果; 在网上查找资料,看到一篇文章关于这个的说法:htt 阅读全文
posted @ 2020-03-01 17:46 月月coding 阅读(681) 评论(1) 推荐(1)