用turtle實現動態漢諾塔

 代碼如下: (此代碼最多可支持七層) import turtle class Stack: def __init__(self): self.items = [] def isEmpty(self): return len(self.items) == 0 def push(self, item): self.items
相關文章
相關標籤/搜索