Home > other >  Beginners python: questions about import module to grammar mistakes
Beginners python: questions about import module to grammar mistakes

Time:10-05

Directly above


Intention to import the get_name function name

Name the code in the following



Executable files and name. Py are stored in D: \ python \ Lib \ site - packages directory,

The younger brother to figure out the reason, close to the brink of collapse, please grant instruction!

CodePudding user response:

Py files, you yourself wrote why STH over and over again to the Lib \ site - packages?

Directly open an d: \ python_projects \ test1 directory is bad?

Also, do not use the name list print and so on key as a file name or function name, or deal with Chinese file name,
Don't give yourself to dig the hole, except the very boring,


Suggestions for IDE, pycharm what of,

CodePudding user response:

reference 1st floor seakingx response:
py files, you yourself wrote why STH over and over again to the Lib \ site - packages?

Directly open an d: \ python_projects \ test1 directory is bad?

Also, do not use the name list print and so on key as a file name or function name, or deal with Chinese file name,
Don't give yourself to dig the hole, except the very boring,


Suggestions for IDE, pycharm what of,

These are not focus, pay attention to the problem, in the editor,

CodePudding user response:

You type main. Py see
Cut a figure
  • Related