problem:
When importing a local module, there is always a wavy line below, similar to the situation in the figure below. But the program can run normally, so I chose to ignore him at first.
However, when I was debugging to jump, I found that I couldn't jump, and there would be a problem, so I had to solve it.
solution:
1. Enter the settings;
2. Enter the Python Console, check Add source roots to PYTHONPATH, and then click OK
3. Right-click the project, select Mark Directory as, and then click Source Root
4. OK