Pycharm prompts an error, Ignore unresolved reference solution

Insert picture description here
Problem description: Path is not defined, Alt+Enter modify the error point Ignore unresolved reference, the compiler does not prompt an error, but it still reports an error when running.
Insert picture description here
Solution:
File->Settings->Editor->Inspections->python->Unresolved references->GUI .path->minus sign (delete)
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_39688282/article/details/114668481