【发布时间】:2021-03-31 12:51:56
【问题描述】:
我正在尝试编写一个白板程序,因此我需要在其中包含 Ctrl-Z(撤消)功能。 如果有人知道答案,请告诉我。
【问题讨论】:
标签: python turtle-graphics undo python-turtle whiteboard
我正在尝试编写一个白板程序,因此我需要在其中包含 Ctrl-Z(撤消)功能。 如果有人知道答案,请告诉我。
【问题讨论】:
标签: python turtle-graphics undo python-turtle whiteboard
【讨论】:
有一个称为 (drumroll) undo() 的撤消函数!
例如:turtle.undo()
显然 Undos 的数量受 UndoBuffer 限制。
来源:https://www.geeksforgeeks.org/turtle-undo-function-in-python/
【讨论】: