Why is the Run option disabled on PyCharm?(为什么 PyCharm 上的运行选项被禁用?)
问题描述
我观察到在一个新项目中 Run 选项被禁用,我希望能够运行脚本而无需手动为其添加配置.
I observed that on a new project the Run option is disabled and I expected to be able to run a script without having to manually add a configuration for it.
推荐答案
没有配置就无法运行,但是如果你在脚本中使用运行上下文菜单选项,可以自动创建临时配置编辑.
You can't run without a configuration, however temporary configuration can be created automatically if you use Run context menu option in the script editor.
这篇关于为什么 PyCharm 上的运行选项被禁用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!