标签:head requests payload request get date print list load
import datetime import json res=json.loads(rs) print(datetime.datetime.now(),‘D01‘, res[‘data‘])
import requests url = "www.baidu.com" payload = {} headers = { ‘Cookie‘: ‘123‘ } response = requests.request("GET", url, headers=headers, data = payload) print(response.text.encode(‘utf8‘))
import os for filename in os.listdir(r‘.‘): print filename
os.rename(filename,filename.replace(‘ ‘,‘_‘))
标签:head requests payload request get date print list load
原文地址:https://www.cnblogs.com/ahuo/p/12356374.html