摘要: Python的self是指向类的实例化对像,而不是类本身,每次调用类的实例化即self指向此实例化对像,如下代码; 1 class Person: 2 def __init__(self,name): 3 self.name=name 4 def sayhello(s... 阅读全文
posted @ 2015-12-16 15:59 chiocai 阅读(323) 评论(0) 推荐(0)