Home >Backend Development >Python Tutorial >The whole process of creating a Python program on PyCharm

The whole process of creating a Python program on PyCharm

little bottle
little bottleOriginal
2019-04-09 17:14:478712browse

As the first program of PyCharm editor, we naturally write a classic Hello Word program first and run it. Let’s follow the editor to do it.

The whole process of creating a Python program on PyCharm

1, create a new project

File --> New Project-->create

The whole process of creating a Python program on PyCharm

2. Create a Python project directory and select the python environment

The whole process of creating a Python program on PyCharm

3. Select the corresponding Python version to load as pycharm

The whole process of creating a Python program on PyCharm

4. Click create to create a folder and start pycharm

The whole process of creating a Python program on PyCharm

You can create a Python project to test whether the Python environment can be loaded and the code can be successfully executed. Click Create the project folder to create new Python files.

The whole process of creating a Python program on PyCharm

When creating Python files, try not to use Python keywords or Python module names to create them. This may cause Python program execution errors or failure to execute.

The whole process of creating a Python program on PyCharm

After using Pycharm to create a Python program, you can enter a simple code to test whether it can be executed correctly. If it can be executed successfully, it means that you can happily use pycharm for programming. .

The whole process of creating a Python program on PyCharm

A very simple program has been completed. I wonder if yours was successful? Try it now!

[Recommended course: Python video tutorial]

The above is the detailed content of The whole process of creating a Python program on PyCharm. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn