摘要:
一.基本实现 def hano(n,x,y,z): if n==1: print(x,"->",z) else: #将n-1个盘子从x->y hano(n-1,x,z,y) #将剩余的最后一个盘子从x->z print(x,"->",z) #将剩余的n-1个盘子从y->z hano(n-1,y,x, 阅读全文
posted @ 2020-03-28 11:52
树懒君
阅读(394)
评论(0)
推荐(0)
摘要:
import math import time scale=10 print("www.linuxidc.com执行开始") t=time.process_time() for i in range(scale+1): a,b='**'*i,'..'*(scale-i) c=(i/scale)*10 阅读全文
posted @ 2020-03-28 11:26
树懒君
阅读(134)
评论(0)
推荐(0)