随笔分类 - requests
摘要:导入模块: from collections import OrderedDict
阅读全文
摘要:![](https://img2022.cnblogs.com/blog/1015604/202204/1015604-20220412221157052-984389281.png)
阅读全文
摘要:读取文件流,然后通过post请求种files参数进行发送模拟 import os import requests current_file = os.path.dirname(__file__) data_file = os.path.join(current_file,'data/demo.xls
阅读全文
摘要:1. 前言 在写接口数据驱动测试框架时,(从excel表中读取的非数据的值都是str类型),发送post/get请求因为数据类型原因,请求失败,走了一些弯路,记录总结一下请求的参数或者请求正文的数据类型 2. 将str类型转成非str类型的方法 函数:eval() 格式:eval(expressio
阅读全文