How to import python file located in same subdirectory in a pycharm project

前端 未结 8 1588
盖世英雄少女心
盖世英雄少女心 2020-12-13 08:48

I have an input error in pycharm when debugging and running.

My project structure is rooted properly, etc./HW3/. so that HW3 is the root di

8条回答
  •  攒了一身酷
    2020-12-13 09:02

    Right-click on the folder which you want to be marked as the source > Mark Directory as > Source root.

提交回复
热议问题