摘要: 类和方法 创建类 class A(object): def add(self, a,b ): return a+b count = A() print(count.add(3,5)) 初始化工作 class A(): def __init__(self,a,b): self.a = int(a) s 阅读全文
posted @ 2018-11-07 17:21 生姜大叔 阅读(251) 评论(0) 推荐(0) 编辑
摘要: python入门 import this import this The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better th 阅读全文
posted @ 2018-11-07 16:00 生姜大叔 阅读(72) 评论(0) 推荐(0) 编辑