摘要:
def line_search(li,val): for ix,v in enumerate(li): if v == val: return ix return None li = [1,5,3,7] ix = line_search(li,3) print(ix) 阅读全文
posted @ 2021-10-01 20:46
NAVYSUMMER
阅读(29)
评论(0)
推荐(0)
摘要:
def hanoi(n,a,b,c): if n > 0: hanoi(n-1,a,c,b) print("moving from %s to %s"%(a,c)) hanoi(n-1,b,a,c) hanoi(3,"A","B","C") 阅读全文
posted @ 2021-10-01 20:36
NAVYSUMMER
阅读(94)
评论(0)
推荐(0)

浙公网安备 33010602011771号