📌  相关文章
📜  'str' 对象没有属性 'read' - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:58.093000             🧑  作者: Mango

代码示例1
read closely, it is two different functions with very similar names. json.load() takes a file like object with a read() method, json.loads() takes a string. It's easy to miss the "s" at the end and think they are the same method. – 
Joshmaker
 Apr 25 '13 at 12:02