Menu
- urllib.request.urlopen
urllib.request.urlopen
import urllib.request
rfile = urllib.request.urlopen("http://news.baidu.com/")
for line in rfile.readlines():
print(line.decode("utf-8"))
import urllib.request
rfile = urllib.request.urlopen("http://news.baidu.com/")
for line in rfile.readlines():
print(line.decode("utf-8"))
本文标题:urllib
本文链接:https://www.haomeiwen.com/subject/halvmftx.html
网友评论