#判断水仙花数
for i in range(0,1000):
ge = i%10
shi = i//10%10
bai = i//100
if i==ge**3+shi**3+bai**3:
print(i)
#输出乘法表
for i in range(1,10):
for j in range(1,i+1):
print(str(j)+'*'+str(i)+'='+str(i*j),end='\t')
print()
#斐波那契数列:1 1 2 3 5.....,从第三位开始,数值为前两个值得和
def fib(n):
if n==1:
return 1
elif n==2:
return 1
else:
return fib(n-1)+fib(n-2)
for i in range(1,6):
print(fib(i))