为了账号安全,请及时绑定邮箱和手机立即绑定

python json 多态问题

python json 多态问题

缥缈止盈 2019-02-24 20:45:33
import json class Students(object): def read(self): print r'["Tim","Bob","Alice"]' s = Students() print json.load(s) 结果输出来但是出现警告Traceback (most recent call last) 但是如果把print换成return就好了 这是为什么呢
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 511 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信