文章分类 - Python
python 基础学习
pip 安装依赖 requirements.txt
摘要:阅读原文:https://www.cnblogs.com/lexus168/p/13565766.html参考:http://www.manongjc.com/ 列出已安装的包 pip freeze or pip list 导出requirements.txt pip freeze > <目录>/r
阅读全文
AttributeError: 'str' object has no attribute 'decode' 解决方法
摘要:示例代码段:import oss = "hello 你好,很高兴遇到你"s = s.decode("utf-8") # 将内容解码为 utf-8print(s)os.system("pause") # 暂停脚本执行,等待用户输入 运行该段代码会报错:AttributeError: 'str' obj
阅读全文
浙公网安备 33010602011771号