程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Python (I) -- Introduction and windows platform installation

編輯:Python

List of articles

  • Python( One )—— Introduction and Windows Platform installation
    • 1、Python brief introduction
    • 2、Windows Platform installation

Python( One )—— Introduction and Windows Platform installation

1、Python brief introduction

Introduce

Python It's object-oriented 、 Interpretive 、 General purpose 、 Open source free 、 Advanced programming language for dynamic data types .

Python The original meaning of English is “ Python ”, until 1989 The Dutch Guido van Rossum ( abbreviation Guido) Invented an object-oriented interpretive programming language , And named it Python, It gives it the meaning of a programming language .

Python Language is in ABC On the basis of teaching language ; Unfortunately ,ABC Although language is very powerful , But it's not widely used , Just Guido In my opinion ,ABC The reason for the failure is that high-level languages are too early , And the platform migration capability is weak , Difficult to add new features , Just focus on beginners , Not including experienced programmers .

Based on this consideration ,Guido Developing Python It's solved in time ABC Some problems of language , It's not just adding a lot of ABC No function , It also designed a variety of rich and powerful Libraries , Take advantage of these Python library , Programmers can use various modules made in other languages ( In especial C Language and C++) It's easy to connect , Make the writing of the extension module very easy , And it can run on multiple platforms .

Until now, (2022 year 6 month ), according to TIOBE The display of the leaderboard ,Python At the top of the list , And there is a trend of continuous improvement ( As shown in the figure below ):

characteristic

Python characteristic :

  • Python Simple and easy to use , Easy maintenance , The cost of learning is low , It looks very elegant and clean ;
  • Python There are many standard libraries and third libraries , Interface to all major business databases , Powerful , You can develop gadgets , You can also develop enterprise applications ;
  • Python portable , Scalable , Based on its open source features ,Python It's been transplanted ( That is to make it work ) To many platforms .

2、Windows Platform installation

Download and install Python3.7.0

Official website download address :https://www.python.org/downloads/windows/

Run the installation package , Check add environment variable , Choose Custom installation :

Keep the default , That is, check all of them , Click on “Next” continue :

In the following figure, the five line selection column from top to bottom means :

  • Load document file
  • pip Instructions , Used for loading python package
  • Display the graphical installation interface
  • python Testing tools
  • py File loader

Select installation path , Click on “Install”:

After installation , Open the command line to test whether the installation is successful :

Enter in window python command , If appear Python Version information for , And see the command prompt >>>, That means the installation is successful , As shown in the figure below :

Run above python The command starts with python Interactive programming environment , We can do it in >>> Enter the code later , And see the results immediately , as follows :

sign out python Interactive programming environment :

Press down Ctrl+Z Shortcut key , Or input exit() Command to exit the interactive programming environment , return Windows Command line .


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved