在Python3.5中无法运行,请问是怎么回事?
import json
class Students(object):
def read(self):
return r'['Tim','Bob','Alice']'
s = Students()
print(json.load(s))
import json
class Students(object):
def read(self):
return r'['Tim','Bob','Alice']'
s = Students()
print(json.load(s))
2016-10-02
举报