摘要: 1、直接声明request对象,然后把request对象当做一个参数传进去 from urllib import request,parse url = "http://httpbin.org/" headers = { 'User-Agent':'Mozilla/5.0 (Windows NT 1 阅读全文