37,718
社区成员
发帖
与我相关
我的任务
分享
# coding=utf-8
import urllib.request
req = urllib.request.Request('http://www.xxxx.com/')
response = urllib.request.urlopen(req)
the_page = response.read()
print(the_page.decode())
# coding=utf-8
import urllib.request
req = urllib.request.Request('http://www.xxxx.com/')
response = urllib.request.urlopen(req)
the_page = response.read().decode('gb2312')
print(the_page)