摘要:
# -*- coding: utf-8 -*- def trim(s): if len(s)==0: return '' if s[:1]==' ': return trim(s[1:]) elif s[-1:]=='': return trim(s[:-1]) else: return s # 测 阅读全文
posted @ 2018-05-20 10:53
流云飞虹
阅读(8762)
评论(0)
推荐(0)
摘要:
# -*- coding: utf-8 -*- def move(n, a, b, c): if n==1: print(a,'==>',c)#只有一块的时候直接从A到C即可 else: move(n-1,a,c,b)#把n-1块从a先移到B print(a,'==>',c)#把第n块先从a先到c move(n-1,... 阅读全文
posted @ 2018-05-20 10:42
流云飞虹
阅读(171)
评论(0)
推荐(0)

浙公网安备 33010602011771号