摘要:
统计case运行的结果需要使用pytest-json-report插件,需要安装 pip install pytest-json-report 1 import pytest 2 from pytest_jsonreport.plugin import JSONReport 3 4 5 6 clas 阅读全文
摘要:
一、将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 = 阅读全文