[Python and Pycharm Installation and Uninstallation Tutorial] You can refer to another blog of mine:
https://blog.csdn.net/weixin_45640009/article/details/109296452 .
- Create a new project
A project can contain many Python files, which is convenient for file management, so choose to create a project first
-
Add a Python interpreter to the project; at this time, you can also modify the project file storage address, change the [Location] path at the top of the page
.
If you forget the path of the interpreter , [win+R], enter cmd, call up the command line, and enter [Where Python ] (In fact, the IDE will give you a hint)
-
Simplify project file structure (optional step)
-
Since we checked the Create main.py file when we created the project, the IDE automatically created a python file named "main" for us, and wrote some basic code, you can try to run it
-
Create a Python file in the project: Right-click the project name.
Naming the file: Try to develop the habit of naming in English. As you learn more, you will use the server, which is not friendly to Chinese.
-
Run your own newly created python file