撤销一次之后剩下什么
运行下面这段程序:
text = ""
history = []
for ch in "abc":
history.append(text)
text = text + ch
text = history.pop()
print(text)
运行下面这段程序:
text = ""
history = []
for ch in "abc":
history.append(text)
text = text + ch
text = history.pop()
print(text)
全部评论