AttributeError: 'str' object has no attribute 'read'

json解析时报错

json.load(filename)
json.loads(string)
一个从文件加载,一个从内存加载

你可能感兴趣的:(Python)