摘要:
统计case运行的结果需要使用pytest-json-report插件,需要安装 pip install pytest-json-report 1 import pytest 2 from pytest_jsonreport.plugin import JSONReport 3 4 5 6 clas 阅读全文
posted @ 2021-08-06 16:41
搁浅小夕
阅读(792)
评论(0)
推荐(0)
摘要:
一、将str转化为dict1.1 使用Python 3的内置ast库的函数literal_eval。最好使用literal_eval而不是eva 1 import ast 2 str_of_dict = "{'name': 'xiaohong', 'age': '18'}" 3 new_dic = 阅读全文
posted @ 2021-08-06 15:23
搁浅小夕
阅读(4949)
评论(0)
推荐(0)
浙公网安备 33010602011771号