python通过操作windows系统注册表方式修改环境变量
摘要:#coding=utf8 import os import sys from subprocess import check_call if sys.hexversion > 0x03000000: import winreg else: import _winreg as winreg class Win32Environment: """Utility class...
阅读全文
python各种post上传文件
摘要:1、带证书上传文件 filename = '/tmp/test.cert'hash_v = 'assumethisisahash' #这是一种流式上传的方式with open(filename, 'rb') as f:....requests.post(link, data={'hash': has
阅读全文