首页 > 解决方案 > 是否有可以在 Google Colaboratory 中使用的“simplegui”替代模块?

问题描述

我需要找到一个可以在 Python 和 Google Colaboratory 中运行的simplegui模块的替代方案。它可以在 CodeSkulptor 平台上运行,但在另一个平台上会出错!

标签: modulesyntax-errorgoogle-colaboratorycodeskulptor

解决方案


通过谷歌合作,我猜你的意思是 CodeSkulptor: https ://py3.codeskulptor.org/

我在 SimpleGUICS2Pygame 库中使用 Pygame 库在 Python 中重新实现了 SimpleGUI: https ://simpleguics2pygame.readthedocs.io/

这样,您就可以在 CodeSkulptor 和标准 Python 2 或 3 中运行相同的程序。


推荐阅读