Create your first Python program with Pycharm

[Python and Pycharm Installation and Uninstallation Tutorial] You can refer to another blog of mine:
https://blog.csdn.net/weixin_45640009/article/details/109296452 .

  1. Create a new project

A project can contain many Python files, which is convenient for file management, so choose to create a project first

  1. 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)

  2. Simplify project file structure (optional step)

  3. 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

  4. 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.

  5. Run your own newly created python file

Guess you like

Origin blog.csdn.net/weixin_45640009/article/details/109300490