场景:
cmd终端使用:chcp 65501 设置为了utf-8
设置python的编码环境:set PYTHONIOENCODING=utf-8 (规避:LookupError: unknown encoding: cp65001)
使用:print('程序版本号:{}'.format(VERSION))时,报错
���序版本号:1.1.1Traceback (most recent call last):
File "wechat_jump_auto.py", line 251, in <module>
main()
File "wechat_jump_auto.py", line 216, in main
print('程序版本号:{}'.format(VERSION))
IOError: [Errno 0] Error
无解:编码问题,暂时未找到好的解决方法,实在不行换成英文吧。