Tools/materials: Glory MagIcBook, WIndows 1 1, PyCharm2023.6.
1. Double-click to open PyCharm, and then click Create New Project.
2. Select Pure Python and provide the location where the project will be created. I put this project in the path of my computer /User/xuxh/PycharmProjects/ and named it demo.
3. Click the arrow and Pycharm will find the Python interpreter installed before. Select the interpreter and click the Create button. Back to the home page, you can see that the initial project structure consists of three parts.
4. Right-click the project name and create a new Python file: new->; Python file. Enter the file name "hello_world" and press Enter to create the hello_world.py file.
5. Write a simple program and print "hello world! ! ! "。 When running the program, you need to right-click the editing area and select Run "hello_world" (or click the menu Run-> Run "hello_world"). Entering the operation console, we can see that PyCharm has output "Hello World! ! ! "。