主题
下载文件
python
url = sys.argv[1]
r = requests.get(url)
localfile = os.path.basename(url)
with open(localfile, "wb") as f:
f.write(r.content)