首先json读取方法是: import json infile = open('my.json','r') data = json.load(infile) infile.close() 可是还是出错了 最后发现错误的地方: