cmd启动python交互模式 出现UnicodeDecodeError: 'gbk' codec can't decode byte 0x9a in position 533
这是因为在python交互模式的中输出了中文,且是个输出被记录在.python_history中
删除历史记录文件
C:\Users\Administrator\.python_history
这是因为在python交互模式的中输出了中文,且是个输出被记录在.python_history中
删除历史记录文件
C:\Users\Administrator\.python_history
pip install eventlet #安装依赖包# -*- coding:utf-8 -*- import eventlet import time e...
更新logging 源码1248行f f f.f_back替换为f f f.f_back f_2 f.f_back  ...
rsa 是非对称加密公钥加密,私钥解密pip install rsaimport rsa from binascii import b2a_hex, a2b_hex class&nb...
123456import os #回去当前文件路径os.path.realpath(__file__)#获取文件是否存在os.path.exists(filepath)#获取文件大小os.path.getsize(fil...
test.ini 配置文件中有mysql的密码,且密码含有“%”这个特殊符号因为%在py是转义符的含义需要对该字符转义即修改 % 为 %%用%对%进行转义...
python3 -m pip install --user --upgrade pip==9.0.3(换成你想要的版本编号)如果python2的只能升级到20+版本。超过会出现不支持的情况...