The first lesson of Python entry for rookies--Pycharm installation and simple use

Without further ado, let's get started.

1. Install pycharm on the OS platform

    First confirm that your system is an OS system, then go to the official website to download the latest pycharm, the connection address: Pycharm

    Then select the download item of macOS, and follow the steps as you usually install software on a general mac.

    During the installation, please select the following options: Do not import settings

                                               Activation method: Activation code Do not choose other activation methods

                                                Activation code connection address: Click to open the link  activation code, you can try multiple times, if the activation code in the connection text does not work, you need to activate the Baidu activation code yourself.

The installed pycharm looks like this: so you can implement your own code.


After the installation is complete, there will be a simple configuration, there is nothing to remind, just remember the Path to the place that you can remember and easy to use.

2. A sense of ritual - the first program: print out "Hello World"

How does it work?

Check it out: Click on Create New Project as shown below


The default Pure Python is what we call pure Python. Next to it is the path of your own project and the Python version to execute the project and subsequent programs. Select the version according to your own preferences and click create. By default, you already know the difference between python2 and python3. If you don't know, please refer to: Difference .


Then you will see the following interface in the previous step. Right-click on the project that is not defined, click NEW, select Directory, and create a new project that belongs to you.


After the establishment, a Python File has been created in the same way


After completing the above operations, the sense of ritual will begin. Are you ready?

At the command line on the right type: 

print("Hello World")

Then click the green run button to run your first program!


This is one of the most basic and easiest to use, learn it. You can leave a message if you have any questions. Learn from each other and make progress together.


 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325776370&siteId=291194637