import requests #url url = ‘http://www.budejie.com/‘ response = requests.get(url) with open(‘baidu.hrml‘ ‘wb‘) as f: f.write(response.content)
baisibudejie_requests
原文:https://www.cnblogs.com/gxsmm/p/9484531.html