[关闭]
@rulerstorm 2014-06-08T03:35:16.000000Z 字数 125 阅读 1447

python类中打印的问题

悬而未决

  1. class test:
  2. def __init__(self, name):
  3. self.name = name
  4. def print_s(self):
  5. print self.name
  6. qq = test("let")
  7. qq.print_s
  8. ##输出: 空
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注