且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

PyCharm 当前工作目录

更新时间:2022-01-19 22:25:27

我有 Pycharm 4.5,所以事情可能会有所改变.

I have Pycharm 4.5, so things might have changed a bit.

尝试转到设置 > 项目 > 项目结构

Try going to Settings > Project > Project Structure

在此对话框中,单击包含源代码的文件夹,然后单击菜单中的蓝色文件夹,将其标记为源"文件夹.我相信这解决了 Pycharm 中的很多路径问题

On this dialog, click your folder that has the source code in it, and then click the blue folder in the menu to note it as "source" folder. I believe this fixes a lot of the path issues in Pycharm

这是内容根源"的链接:https://www.jetbrains.com/pycharm/help/content-root.html

Here is the link to "content roots": https://www.jetbrains.com/pycharm/help/content-root.html