摘要:
类和对象 a. 创建类 class 类名: def 方法名(self, xxxx): pass b. 创建对象 obj = 类名() c. 调用方法 obj.方法名() 封装: class SQLHelper: def fetch(self, sql): print(self.h_host) pri 阅读全文
posted @ 2016-11-26 16:18
Yu-feng
阅读(442)
评论(0)
推荐(0)
浙公网安备 33010602011771号