@@ -0,0 +1,660 @@
+from urllib.error import URLError, HTTPError%0Aimport urllib.request%0Aimport urllib.parse%0A%0Aurl = 'http://tieba.baidu.com/p/2166231880'%0Avalues=%7B'wd':'python',  %0A        'opt-webpage':'on',  %0A        'ie':'gbk'%7D  %0Aurl_values=urllib.parse.urlencode(values)  %0A#print(url_values)  %0A  %0Aurl_values=url_values.encode(encoding='UTF8')  %0Afull_url=urllib.request.Request(url,url_values)  %0A#or ony one sentense:full_url=url+'?'+url_values  %0A  %0Atry:  %0A    response=urllib.request.urlopen(full_url)   #open=urlopen  %0Aexcept HTTPError as e:  %0A    print('Error code:',e.code)   %0Aexcept URLError as e:  %0A    print('Reason',e.reason)  %0Athe_page=response.read()  %0Aprint(the_page)  %0A

Create 0013.py