#encoding:UTF-8import urllib.request url = "http://www.baidu.com"data = urllib.request.urlopen(url).read()data = data.decode('UTF-8')print(data)
本文共 193 字,大约阅读时间需要 1 分钟。
#encoding:UTF-8import urllib.request url = "http://www.baidu.com"data = urllib.request.urlopen(url).read()data = data.decode('UTF-8')print(data)
转载于:https://www.cnblogs.com/wumac/p/5465315.html