![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
小耳洞
这个作者很懒,什么都没留下…
展开
-
python多继承
python多继承 class A: def a(self): print("2020年") class B: def b(self): print("2020年2月") class C(A,B): pass c=C() c.a() c.b() 运行结果:原创 2020-02-25 10:07:36 · 202 阅读 · 0 评论 -
python递归与乘方
python乘方 a=2**3 print(a) Python递归使用 #求n的阶乘 def factorial(n): if n==1: return 1 else: return n*factorial(n-1) while(1): number=int(input("input an int type number:")) ...原创 2020-02-25 10:01:43 · 482 阅读 · 0 评论