【开源中国 APP 全新上线】“动弹” 回归、集成大模型对话、畅读技术报告”
pic = requests.request('GET','http://chanyouji.com')
为什么会抛出这样的异常,求大神求解
import requests headers = { 'user-agent': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36'} r = requests.get('http://chanyouyi.com', headers=headers) print(r.status_code) # 200
Python3.5 测试通过
Python3.5 测试通过