There are still many ways to develop python programs. Execute code line by line with an interpreter or execute a python code file through an interpreter program,
but these two methods are actually only used in test scenarios
, just like ancient wars. Only heroes are useless. , he also has a handy weapon. Most python programs are developed on PyCharm, and its usage rate is relatively much higher.
Before installing PyCharm, you are required to have python installed on your computer.
If you haven’t installed it, you can check my article python download and install first.
Let's first visit the official download website
PyCharm download address.
First of all, you must check your computer system before clicking.
Then there are two versions. The
development version has more functions, but it
doesn't need to be so good to learn for a fee. The community version is enough, so we Select the community version to
download and click to enter the next interface. At this time, the download should have started. If not, click on the location as shown in the picture below.
After downloading, click on the installation package, and
the installation prompt will pop up. Click Next
and the address here is recommended to be changed. Because it defaults to the location of the C drive. After using the computer for several years, you should know that it is very dangerous to put things in the C drive. Let’s click here to select the address to be
replaced.
After
the modification is completed, select the next step
here. Don’t worry about it directly. next step
Then operate as shown in the figure below
to start the download of our tool.
Then here we will check the above and click Finish.
You must check the user agreement on this interface. If you don’t check it, you can’t use
it.
If you want to create a project, click the plus sign to create a project.
Then first, you need to click on the location as shown below
to change the location of the project.
After selecting the directory, remember to add a \project name at the end
, otherwise it will directly select you The directory is overwritten.
For example, I chose the python folder under the learning case under the D drive. My project name is learning.
Write it like this.
The following option selects Previously configured interpreter
and then points to it as shown in the picture below. Click
here to select the third normal. If you have installed it Python will read your default interpreter and click OK below, then
click Create
to create a python project
After opening, it will prompt us whether to download some pre-built shared indexes. We directly click Always download to permanently download the
file that the system brings to me by default. We don’t need to look at it and close it.
Then we find the project directory, right click and select New>Python File
here Enter the file name. For example, I call it text here
, then press the Enter key to create the file
and enter it in the file.
print("Hello World!!!")
Then right-click in the file and select the location as shown in the figure below
, and then our editor will run the result