"和’的区别?在这个例子中,不通用,为何?
在下面代码中,为何双引号改成单引号就不能运行了?
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)
2017-04-17
举报