Pycharm 控制台启动脚本不起作用 [英] Pycharm console startup script not working
问题描述
我在运行 Mavericks 的 Macbook 上使用 PyCharm Community Edition 4.0.4.在 Preferences > 下构建、执行、部署 >控制台 >Python Console
有一个文本区域可以输入启动脚本.最初它包含 import sys;
后跟一个打印语句,该语句打印 Python 框架的文件路径以及当前文件的文件路径.但是,当我更改或删除本节中的打印语句,然后点击应用和确定时,我的 python 控制台输出没有任何变化.我尝试重新启动 Pycharm,然后运行 hello world
程序,但初始启动脚本输出仍然存在.
I'm using PyCharm Community Edition 4.0.4 on a Macbook running Mavericks. Under Preferences > Build, Execution, Deployment > Console > Python Console
there is a text area to input a starting script. Initially it contains import sys;
followed by a print statement that prints the file path of the Python framework as well as the file path of the current file. However, when I alter or delete the print statements in this section, and then hit apply and OK, nothing changes in my python console output. I have tried restarting Pycharm and then running a hello world
program, but the initial starting script output is still there.
我只是在运行一个简单的 hello world 程序,包含一个包和两个文件(另一个是默认的 __init__.py
).如何正确更改启动脚本?
I am just running a simple hello world program, with one package and two files (the other being the default __init__.py
). How can I alter the starting script correctly?
推荐答案
那时您想更改启动脚本.名为启动脚本"的更改:
You want to change the startup scripts then. Change called "Starting Script":
这篇关于Pycharm 控制台启动脚本不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!