📜  python 读取 url - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:48.942000             🧑  作者: Mango

代码示例1
import urllib

link = "http://www.somesite.com/details.pl?urn=2344"
f = urllib.urlopen(link)
myfile = f.read()
print(myfile)