[英]Eclipse: Open file in PyDev Console
In Eclipse i have my project with several '.py' files. 在Eclipse中,我的项目带有多个“ .py”文件。 When i use the "Run" button, to start one of them, a console window opens and the code is executed.
当我使用“运行”按钮启动其中一个时,将打开一个控制台窗口并执行代码。 Also i have the option to start a PyDev console.
我也可以选择启动PyDev控制台。 Now i want to know how i can run the py-files from my project folder or workspace in that very console.
现在,我想知道如何在该控制台中从项目文件夹或工作区运行py文件。 I tried it with
from project\\subfolder1\\subfolder2 import Run
but it returns me 我
from project\\subfolder1\\subfolder2 import Run
尝试了一下,但返回了我
Import Error: no module named ...
导入错误:没有名为...的模块
What am i doing wrong? 我究竟做错了什么? I just started with python this week.
我这周刚开始使用python。
Thank you 谢谢
如果有帮助,请参见教程, 交互式控制台
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.