from urllib.request import urlopen html = urlopen("http://www.baidu.com") print(html.read())
注意: 以上代码基于Python 3.x
时间: 2024-12-09 19:02:48
from urllib.request import urlopen html = urlopen("http://www.baidu.com") print(html.read())
注意: 以上代码基于Python 3.x