I am trying to import a function from a file mydate.py
which returns current date to another file using Pycharm but Pycharm is not detecting that function of the file. To do so I am using the following lines
from mydate import curdate
but Pycharm is not able to find this function.
You need to mark a folder as a source root.
See https://www.jetbrains.com/help/pycharm/project-structure.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.