如何 运行 在 Thonny IDE 和 raspberry pi 上编写 24/7 脚本?

How to run script 24/7 on Thonny IDE on a raspberry pi?

我是编程新手,如果这听起来像是一个愚蠢的问题,我很抱歉。我想知道我是否可以 运行 在棘手的 ide 中全天候 24/7 编写脚本。该脚本基本上只是从网站收集数据并打印出来。

Thonny 只是一个 IDE,“生产”运行 不需要它。您应该使它可执行,然后使用 nohup 运行 它。查看此 post 了解更多详情! https://askubuntu.com/questions/396654/how-to-run-a-python-program-in-the-background-even-after-closing-the-terminal (查看最佳答案)