如何停止自动Python脚本

发布于 2025-02-08 04:55:46 字数 191 浏览 0 评论 0原文

在我的工作中,有一些python脚本自动运行,没有人真正使用。它们比什么都更令人讨厌,但是我不想删除它,以防稍后我们需要它。

我的问题是,如果我进入代码并将所有内容置于评论中,那会阻止代码运行吗?抱歉,如果这是一个明显的问题,我对Python有一个初学者中级知识,这似乎可以正常工作,而无需删除脚本,但我想对这个问题有更多意见。我只处理几次自动运行脚本。

At my work, there are a few python scripts that run automatically that no one really uses anymore. They are more of an annoyance than anything, but I don't want to have to delete it just in case we need it later.

My question is that if I go into the code and make everything into a comment, would that stop the code from running? Sorry if this is an obvious question, I have a beginner-intermediate knowledge of python and that seems like it would work without me having to delete the script, but I wanted to get some more opinions on this issue. I've only dealt with automatically running scripts a few times.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文