摘要: re的使用参考:正则表达式基础及re模块:https://www.cnblogs.com/dream66/p/12953729.html import restr1 = '{"access_token":${token}}'dict1 = {'token': 'AFABMG'}#成果:{"acces 阅读全文
posted @ 2020-12-09 22:27 极士* 阅读(343) 评论(0) 推荐(0)
摘要: 举例子: demo01.py import jsonimport requestsimport jsonpathsession = requests.session()get_param_dict={ "grant_type":"client_credential", "appid":"wx5561 阅读全文
posted @ 2020-12-09 03:10 极士* 阅读(318) 评论(0) 推荐(0)
摘要: 多步请求封装,执行完一个用例 def requests(self,step_info): request_type =step_info['请求方式'] if request_type=="get": result=self.get(step_info) elif request_type == " 阅读全文
posted @ 2020-12-09 02:45 极士* 阅读(265) 评论(0) 推荐(0)
摘要: 字符串转化成字典: convert_to_dict.py: import jsonstr1 = '{"grant_type":"client_credential","appid":"wx55614004f367f8ca","secret":"65515b46dd758dfdb09420bb7db2 阅读全文
posted @ 2020-12-09 01:44 极士* 阅读(352) 评论(0) 推荐(0)