我的解决方案应该使用CodeSkulptor simplegui (或使用SimpleGUICS2Pygame的离线版本)显示算法的每个步骤。CodeSkulptor没有可用的time.sleep(),我不认为它会有任何帮助。
for square in squares:
# time.sleep(1) # Not implemented in C
我遵循了这篇文章中的步骤:,我希望运行一个示例代码,但我得到了这个错误:File "C:/Python27/exemples/simpleGUI_exeple.py", line 4, in <module>ImportError: No module named simpleGUICS2Pygame