AI写作智能体 自主规划任务,支持联网查询和网页读取,多模态高效创作各类分析报告、商业计划、营销方案、教学内容等。 广告
#### GET ``` http = urllib3.PoolManager() header = { 'User-Agent':'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36' } res = http.request("GET", "http://www.baidu.com/s?", fields={'wd':'hello'}, headers=header) print(res.status) print(res.data.decode()) ``` #### POST ``` http = urllib3.PoolManager() header = { 'User-Agent':'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36' } res = http.request("POST", "http://www.baidu.com/s?", fields={'wd':'hello'}, headers=header) print(res.status) print(res.data.decode()) ```