摘要: import requests url = 'https://www.baidu.com/' res = requests.get(url) res.encoding = 'utf-8' # 指定编码格式,默认为'utf-8' print(res) print(res.content) # b'二进 阅读全文
posted @ 2023-05-16 19:28 szboy2005 阅读(17) 评论(0) 推荐(0)