python 下載檔案demo

cb1101發表於2020-11-28
import requests

print "downloading with requests"
url = 'http://download.redis.io/releases/redis-5.0.5.tar.gz' 
r = requests.get(url)
with open("demo3.zip", "wb") as code:
    code.write(r.content)

 

相關文章