import requests
url = 'http://zhangmenshiting.qianqian.com/data2/music/1cf3c26aa91645776dc9dd8e65bbe1c3/594706168/594706168.mp3?xcode=e55de6ead2ce65d1a0cc505dc0621a48'
response = requests.get(url)
url = 'http://zhangmenshiting.qianqian.com/data2/music/1cf3c26aa91645776dc9dd8e65bbe1c3/594706168/594706168.mp3?xcode=e55de6ead2ce65d1a0cc505dc0621a48'
response = requests.get(url)
with open('1.mp3','wb') as f:
#因为是mp3文件,所以用content
f.write(response.content)