实例
classTest: defprt(runoob): print(runoob) print(runoob.__class__)t = Test()t.prt()
以上实例执行结果为:
<__main__.Test instance at 0x10d066878>
__main__.Test
classTest: defprt(runoob): print(runoob) print(runoob.__class__)t = Test()t.prt()
以上实例执行结果为:
<__main__.Test instance at 0x10d066878>
__main__.Test