测试代码如下:
import json
with open('./reports/jsonDumps/testResult.json') as behave_json:
print("helloxxxxx", behave_json, "\n")
print(json.load(behave_json))
print("helloxxxxx", behave_json, "\n")
print(json.load(behave_json))
我在相同的“ with scope”上尝试,但是遇到错误