摘要: 求列表中出现最多的元素(可能有多个) lt = [1, 1, 2, 3, 3, 5, 6, 8, 9, 4, 6, 18, 6, 44, 6, 44, 44, 44,44,6]ft=[] #去重后放入列表中count_01=[] #元素出现的次数#1.去重for i in lt: if i not 阅读全文
posted @ 2021-05-07 18:08 阿华阿 阅读(467) 评论(0) 推荐(0)
摘要: 场景:参数化时,request script和tests中需要用到csv中的字段 步骤: 1.把excel文件保存为CSV格式 2.在pre-request scrip和tests中用data.字段名取出来放到自定义变量中,分别打印出来 3.运行后,查看打印值 作者:xiaotao出处:https: 阅读全文
posted @ 2021-05-07 16:41 阿华阿 阅读(173) 评论(0) 推荐(0)