post get 请求 headers注释哪些
post和get #post请求fomdata=urllib.parse.urlencode(fomdata).encode() request=urllib.request.Request(url=url,headers=headers) response=urllib.request.urlopen(request,fomdata) print(response.read().decode()) #get请求 formdata=urllib.parse.urlencode(formdata) url=url+formdata request=urllib.request.Request(url=url,headers=headers) response=urllib.request.urlopen(request) print(response.read().decode()) headers headers={ # ':authority': 'fanyi.baidu.com', # ':method':'POST' , # ':path': '/v2transapi', # ':scheme': 'https', # 'accept':' */*', # 'accept-encoding': 'gzip, deflate, br', 'accept-language':