在 Ubuntu 中运行 pygame 时,终端会与 pygame 窗口一起打开。我想摆脱终端。我可以使用 nohup
和 &
启动 pygame:
$ nohup python3 mygame.py &
这允许关闭终端,但不会阻止它首先打开。
有没有办法在不打开终端的情况下运行 pygame?
最佳答案
OP 解释说应该创建一个桌面快捷方式, 然后终端就消失了。
关于python - 在 Linux 下运行 pygame 时摆脱终端,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55882977/