嘿,所以代码可以完美运行,非常感谢!
我还有一个问题。我想在两个列之间显示一个箭头。我创建了这段代码,但我真的不知道如何让它进入正在切换的列之间。有什么建议么?
def arrow(lst, i): # function for the arrow
if (lst[i], lst[i+1] == lst[i+1], lst[i]):
t.home()
t.penup()
# im thinking something goes here but i dont know what :P
t.pendown()
t.pencolor("red")
t.right(90)
t.forward(20)
任何帮助将不胜感激!谢谢!顺便说一句,其余代码就像 imran 的代码!:) 谢谢你!