我的 python 解释器自己以交互模式运行
My python interpreter runs in interactive mode on its own
Python 版本:3.6.1
Pycharm版本:2018.1 EAP(专业版)
我的 python 解释器 运行 处于交互模式 独立!!
I just ran the script
我 运行 PyCharm 中的 python 脚本和我通常做的一样。
直到昨晚(2018/01/31),口译员的工作都很好,但是...
But the interpreter has been changed like this
已在交互模式下更改AUTOMATICALLY.
我确实刚睡了,醒来就运行了。
This is what actually I had seen
运行就这样一直到昨晚。
(我从 Google 带来它,因为我没有捕获。)
PyCharm Preferences
但这并不意味着 -i
在解释器选项中。
我得到了一些取消选中的解决方案
"Show command line afterwards" 盒子可以用,但我找不到它。
import sys
print(sys.flags.interactive) # 0
选中的交互标志是 False
。
使用交互式解释器有点用,但我现在对此感到不舒服。
如何将其更改为非交互???
您可以在 运行 > 编辑配置中找到该选项
转到 运行 > 编辑配置... 菜单。 Select Python > your-script-name 在左侧并取消选中选项 Show command line afterfter on右边:
Python 版本:3.6.1
Pycharm版本:2018.1 EAP(专业版)
我的 python 解释器 运行 处于交互模式 独立!!
I just ran the script
我 运行 PyCharm 中的 python 脚本和我通常做的一样。
直到昨晚(2018/01/31),口译员的工作都很好,但是...
But the interpreter has been changed like this
已在交互模式下更改AUTOMATICALLY.
我确实刚睡了,醒来就运行了。
This is what actually I had seen
运行就这样一直到昨晚。
(我从 Google 带来它,因为我没有捕获。)
PyCharm Preferences
但这并不意味着 -i
在解释器选项中。
我得到了一些取消选中的解决方案 "Show command line afterwards" 盒子可以用,但我找不到它。
import sys
print(sys.flags.interactive) # 0
选中的交互标志是 False
。
使用交互式解释器有点用,但我现在对此感到不舒服。
如何将其更改为非交互???
您可以在 运行 > 编辑配置中找到该选项
转到 运行 > 编辑配置... 菜单。 Select Python > your-script-name 在左侧并取消选中选项 Show command line afterfter on右边: