python下载文件
2020-02-20 本文已影响0人
火星凯撒
from urlgrabber import urlopen
fo = urlopen("http://url/repomd.xml")
data = fo.read()
print(data)
fo.close()
from urlgrabber import urlopen
fo = urlopen("http://url/repomd.xml")
data = fo.read()
print(data)
fo.close()