2020年12月6日

用python封装一个接口请求

摘要: import requests # 导入第三方库 class HttpRequest: # 定义一个类 """ 利用request封装get和post请求 url:请求参数 parm:传递的参数,非必填参数,字典的格式传递参数 """ def http_request(self, url, data 阅读全文

posted @ 2020-12-06 21:44 Tester十点半 阅读(611) 评论(0) 推荐(0)

导航