5-4 多态
import json
class Students(object):
def read(self):
return r'["Tim","Bob","Alice"]'
s = Students()
print json.load(s)
代码里面的
r'["Tim","Bob","Alice"]' 是什么意思?
import json
class Students(object):
def read(self):
return r'["Tim","Bob","Alice"]'
s = Students()
print json.load(s)
代码里面的
r'["Tim","Bob","Alice"]' 是什么意思?
2018-01-15
举报