who_care

导航

 

2017年11月15日

摘要: class Tests(object): #定义类 aaa = '10' #定义变量 def test(self): #定义类的方法test b = 20 return b if __name__ == "__main__" : t = Tests() #实例化 snap1 = getattr(t, 阅读全文
posted @ 2017-11-15 17:13 who_care 阅读(745) 评论(0) 推荐(0) 编辑