python3 默认的是UTF-8格式,但在在用dump写入的时候仍然要注意:如下
import json
data1 = {
"TestId": "testcase001",
"Method": "post",
"Title": "登录测试",
"Desc": "登录基准测试",
"Url": "http://xxx.xxx.xxx.xx",
"InputArg": {
"username": "王小丫",
"passwd": "123456",
},
"Result": {
"errorno": "0"
}
}
with open('casedate.jso