标签:cep time *** code pen galaxy lin info awl
urllib.request.rechieve("www",filename="")
urllib.request.cleanup()
a=urllib.request.urlopen()
a.info()
a.getcode()
a.geturl()
*******************************************
a=urllib.request.urlopen("https://www.galaxymacau.com/zh-hant/",timeout=200)
***********************************
for i in range(0,100):
try:
a=urllib.request.urlopen("https://www.galaxymacau.com/zh-hant/",timeout=1)
data1=a.read()
print(len(data1))
except Exception as e:
print("exception now:"+str(e))
**********************************
http request:
标签:cep time *** code pen galaxy lin info awl
原文地址:http://www.cnblogs.com/rabbittail/p/7619988.html