📌  相关文章
📜  python 获取在线文件 - Python 代码示例

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

代码示例1
import urllib2  # the lib that handles the url stuff

data = urllib2.urlopen(target_url) # it's a file like object and works just like a file
for line in data: # files are iterable
    print line