如何停止自动Python脚本
在我的工作中,有一些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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论