摘要: #切记:绑定方法:绑定给谁就应该由谁来调用,谁来调用就会把谁当做第一个参数自动传入 class MySQL: def __init__(self,host,port): self.host=host self.port=port def func(self): print('%s 说:你好啊我的天' %self.name) ... 阅读全文
posted @ 2018-02-22 11:41 强仔必胜 阅读(127) 评论(0) 推荐(0) 编辑
摘要: property功能 阅读全文
posted @ 2018-02-22 11:03 强仔必胜 阅读(213) 评论(0) 推荐(0) 编辑