Python and python
Python script language
(The name of python originated from a script screenplay, which repeats the dialog box word by word every time it is run. Written by the famous "Uncle turtle" Guido van Rossum during the Christmas Day of 1989 .)
Python provides a complete base code library covering a large number of contents such as networks, files, guis, databases, and texts. It is known as a "built-in battery ".
In addition to the built-in libraries, Python also has a large number of third-party libraries, that is, Dingxi, which is developed by others for your use. Of course, if the code you develop is well encapsulated, it can also be used as a third-party library for others.
Python is an explanatory language. During code execution, a line by line is translated into a machine code that the CPU can understand.
Advantages: elegance, clarity, efficiency, and simplicity
Disadvantage: slow running speed <translation time consumed>, and the Code cannot be encrypted
Python is cross-platform, that is, interconnectivity.
It can run on Windows, Mac, and various Linux/Unix systems. For example, writing a Python program on Windows can also run on Linux.
Python is an object-oriented language. Everything in Python is an object.
-- Script language
Definition: The computer language created to shorten the traditional <write-compile-link-run> process.
A scripting language, also known as an extended or dynamic language, is a programming language used to control software applications.
It is usually saved in text and interpreted or compiled only when called.
Features: The syntax is simple. It is generally saved in text format and does not need to be compiled into a target program. It is directly explained during call.
Common scripting languages include cmd commands, JavaScript, VBScript, perl, PHP, Pyhton, and Ruby.
-- Extend
The computer's heart CPU only recognizes machine commands
Therefore, despite the large differences in different programming languages, the machine commands that can be executed by the CPU are eventually translated.
Different programming languages have a large gap in the amount of code for the same event, for example:
For the same task, the C language requires 1000 lines of code, JAVA may only require 100 lines, and Python only requires 20 lines.
However, the low cost of code is the slow running speed. The C language takes 1 second, JAVA may take 2 seconds, and Python may take 10 seconds.
Certificate ------------------------------------------------------------------------------------------------------------------------------------
Installation:
Currently, Python is available in version 2.x and version 3.x, which are incompatible. For details about how to install Python, see the Python tutorial-liao Xuefeng.
After installation, you will get the Python interpreter (responsible for running the Python Program), ① a command line interactive environment, and ② A simple integrated development environment.