09 2021 档案
摘要:class Ctc(object): def __init__(self): self.name = "shun" def run(self): self.prea() self.a() self.b() self.c() def a(self): print("a") def b(self): p
阅读全文
摘要:def CheckValue(value): value = int(value) #assert condiction, expression #当 condition为True的时候,程序不会assert,当condition判断的条件为False时候,程序就会assert assert val
阅读全文
摘要:为什么要用 super() 当子类重写了父类方法时,又想调用父类的同名方法时,就需要用到 super() 关于super函数的详细解释 Python - 面向对象编程 - super() - 小菠萝测试笔记 - 博客园 (cnblogs.com) class FooGrandParent(objec
阅读全文