Josn写入: priorizationTests = { } priorizationTests["Method1"]="1,2,3,4" with open("test.json",'w') as outfile: str=json.dumps