import json
class Students(object):
def read(self):
print r'["Tim","Bob","Alice"]'
s = Students()
print json.load(s)
結(jié)果輸出來但是出現(xiàn)警告Traceback (most recent call last)
但是如果把print換成return就好了 這是為什么呢
添加回答
舉報
0/150
提交
取消