📜  使用 python 代码示例下载文本文档

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

代码示例1
import requests

url = "https://example-download-py.netlify.app/Downloaded_file.txt"
request = requests.get(url)

file = open("Downloaded_file.txt","w")

file.write(request.text)
file.close()