![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
qinkaizhao123
--
展开
-
pytest基础 html报告 内容打印 参数 -v --tb-short
【代码】pytest基础 html报告 内容打印 参数 -v --tb-short。原创 2023-02-09 22:37:55 · 148 阅读 · 0 评论 -
python 按照列表下标批量删除数据
cnt = 0list_index = [1, 3, 5]list = ['a', 'b', 'c', 'd', 'e', 'f']for i in list_index: del list[i-cnt] cnt += 1原创 2021-10-19 11:59:12 · 623 阅读 · 0 评论 -
python 一些字典合并为列表、列表拆分字典操作
字典合并为列表list_data_t = [{"a":"1","b":"2","c":"3"}, {"a":"1+","b":"2+","c":"3+"}, {"a":"1-","b":"2-","c":"3-"}, {"a":"1#","b":"2#","c":"3#"}, ]result = {} # {a:[1,1+,1-],bb:[]}for key in lis原创 2021-06-06 12:08:12 · 1532 阅读 · 0 评论