用python封装一个接口请求
摘要:import requests # 导入第三方库 class HttpRequest: # 定义一个类 """ 利用request封装get和post请求 url:请求参数 parm:传递的参数,非必填参数,字典的格式传递参数 """ def http_request(self, url, data
阅读全文
posted @ 2020-12-06 21:44
posted @ 2020-12-06 21:44
posted @ 2020-12-05 21:14
posted @ 2020-12-05 11:36