摘要:
类和方法 创建类 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 阅读全文
摘要:
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 阅读全文