• res=requests.get(url,timeout=10) code = res.apparent_encoding # 获取url对应的编码格式 res.encoding = code content=res.text
  • #匹配中间 ‘(?<=…)’ 前向界定 括号中 ’…’ 代表你希望匹配的字符串的前面应该出现的字符串。 ‘(?=…)’ 后向界定 (?<=id="decrement_\d+_)\d+ re.findall('(?<=<im...
  • pymysql.connect(host='127.0.0.1',user='root',password='123456',database='test',charset='utf8') neicur = nei.cursor() neicur...
  • config = { 'host': '127.0.0.1', 'port': 3306, 'database': 'test', 'user': 'root', 'password': '123456', 'charset': 'utf8' }...
  • from flask_cors import * app = Flask(__name__) CORS(app, supports_credentials=True) api = Api(app)
  • pyinstaller -p d:\software\python\lib;d:\software\python\lib\site-packages -F pyinstaller -p e:\software\python\lib;F:\Pyth...
  • import xlwt # 创建一个workbook 设置编码 workbook = xlwt.Workbook(encoding = 'utf-8') # 创建一个worksheet worksheet = workbook.add_sheet...
  • bcdedit /set {bootmgr} displaybootmenu yes
  • netstat -ano|findstr 6 00 tasklist|findstr 19848
  • smc.version = "0" cpuid.0.eax = "0000:0000:0000:0000:0000:0000:0000:1011" cpuid.0.ebx = "0111:0101:0110:1110:0110:0101:0100...
  • 1
  • 2