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 · 293 阅读 · 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 · 556 阅读 · 0 评论
分享