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...
flask的uwsgi配置文件[uwsgi]pythonpath=/usr/bin/python3 #uwsgi采用的py版本,如果项目采用的py版本跟系统默认一直可以不用写base=/***/***/*** &nb...
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...
time selenium webdriver options webdriver.() options.() options.( options.() browser webdriver....
该模块让python脚本命令能够符合标准的Unix命令例程式每个命令行参数就是由参数名字符串和参数属性组成的。如 -f 或者 file 分别是长短参数名当你将所有的命令行参数都定义好了的时候,我们需要调用parse_args()方法赖际熙a...