Python MP3 文件下载(音乐下载)


#
 import requests 
class Music:
    def save(self,url):
        res=requests.get(url)
        with open('music.mp3','wb') as f:
            f.write(res.content)

 

posted @ 2023-07-16 18:43  sszqxt  阅读(92)  评论(0编辑  收藏  举报