Home > other >  Weird problems said error function name is not defined
Weird problems said error function name is not defined

Time:09-24

Function of reference documents clearly has an import *, suddenly appeared this problem, did not appear before, didn't also change what things ah,,

Strange place lies in, suppose you have the main documents, B and C file function definition in C: XXX
Main reference XXX, no problem, can through;
The correct reference XXX, B
The main and B are introduced C,,,

CodePudding user response:

Try not to use the import *, you direct import C file (C.p y), and then call the other py file when in use C.x xx, otherwise easy and pycharm built-in function name repeated problems can't check it out

CodePudding user response:

reference 1st floor MuSa xiaoxiang reply:
try not to use the import *, you direct import C file (C.p y), and then call the other py file when in use C.x xx, otherwise easy and pycharm built-in function name repeated questions check out


Before but no problem, but also a possible eerie place, generally the upper right corner of the default are the main, which is once the operation is to perform the main function, but I don't know what happened yesterday itself into a B or C function, didn't pay attention to run again, I didn't have a look at what happened, was discovered, main and manually change it back, don't know and is there a link between ZhuTie problem

CodePudding user response:

The cross-reference problems solved,,,,
  • Related