This is the 15th day of my participation in the August More Text Challenge. For details, see:August is more challenging

preface

I’ve always wanted to learn Python, but I haven’t made up my mind yet. What can Python do? I also do not know, after all I am also a novice 😳, gently spray ~

Refuze 💪🏻ヾ(◍° °◍) new air

The first step in learning Python is to learn how to install and configure the Python environment

Install the Python environment

The first step, of course, is to log inPython’s official websiteDownload the installation packageIt’s easy. Just clickDownloadsDownload OK, next step install OK, I default you also installed!

Hello world output

Open the Terminal/CMD window. Just type Python to enter the Python command interface directly.Let’s go ahead and print(“Hello World”) to see what the output looks like:Isn’t that easy, Hello World is so successful, ok, I’ve got the entry 😆! 罒 omega 罒 ~

Install PyCharm

I heard that Python bigs use PyCharm in their programming, so I have to download one too. You can’t always write programs for this terminal/CMD, it’s too unfriendly to me.

Similarly, wePyCharm websiteStart:Look at the next, there are two versions, EMM, anyway you can try, I download Professional, who let me be Professional (‘ translation ´*) blue, cough, installation process I will not demo, I believe that everyone 😌.

Create a project

Ok, I have PyCharm on. Let’s create a project for funHere select your own project location, and then you install the Python version, my Python is the latest 3.9Okay, we’ve created it, we don’t know what it is, but let’s run it, okay?This is similar to the output of our terminal/CMD:Well, that’s good. I’m making progress. I’ll build my own Python file to try again:Ok, I’ve built it, let’s try print and say, nice:What is pprint 😧? Anyway, print(“Hello Lucifer”), right click on the py file to execute, and say Hello to the blogger:Ok, I received, thank you ah ~ 😑 said to himself, no, the clown was my own 😱!Hao Lat, this learning record is here ~ after the record sharing wait for me to steal a lesson to share again! Don’t think I talk too much ~👌


That’s the end of this sharing

If you think the article is helpful to you, like, collect, follow, comment, one key four support, your support is the biggest motivation for my creation.