Python-basic introduction

1. What is python

Python is a computer programming language and an object-oriented, dynamically typed language. It was originally designed to write automated scripts (shells). With the continuous updating of versions and the addition of new language features, more and more are used For independent, large-scale project development.

2. Development of Python

Python was designed by Guido van Rossum at the Dutch National Institute of Mathematics and Computer Science in the late 1980s and early 1990s.
Python itself has also evolved from many other languages, including ABC, Modula-3, C, C ++, Algol-68, SmallTalk, Unix,
shell, and other scripting languages. Like the Perl language, Python source code also follows the GPL agreement. Now that Python is maintained by a core development team, Guido van Rossum still plays a vital role in guiding its development.

3. Advantages of Python

(1) Simple and easy to learn: Python has relatively few keywords, a simple structure, and a clearly defined grammar, making learning easier.
(2) Easy to read: Python code is more clearly defined.
(3) Easy to maintain: The success of Python is that its source code is quite easy to maintain.
(4) An extensive standard library: One of the biggest advantages of Python is the rich library, cross-platform, compatible with UNIX, Windows and Macintosh.
(5) Interactive mode: Interactive mode support, you can enter the execution code from the terminal and get the results of the language, interactive testing and debugging code snippets.
(6) Portability: Based on its open source features, Python has been ported (that is, made it work) to many platforms.
(7) Extensible: If you need a piece of critical code that runs fast, or you want to fill in some unwilling algorithms, you can use C or C ++ to complete that part of the program, and then call it from your Python program.
(8) Database: Python provides interfaces for all major commercial databases.
(9) GUI programming: Python supports GUI that can be created and ported to many system calls.
(10) Embeddable: You can embed Python into a C / C ++ program to give users of your program scripting capabilities.

4. Python disadvantages

(1) Problems with single-line statements and command line output: Many times the program cannot be written on one line.
(2) Unique grammar: This may not be called a limitation, but the way it uses indentation to distinguish sentence relationships still confuses many beginners. Even very experienced Python programmers may fall into the trap.
(3) Slow running speed: This means that compared with C and C ++
(4) The code cannot be encrypted
(5) The thread cannot use multiple CPUs

5. Application areas of Python

Python is an interpreted language script, Can be applied to the following fields:
(1) Big data
(2) Data analysis
(3) Artificial intelligence
(4) Automated testing
(5) Automated operation and maintenance

Published 35 original articles · praised 0 · visits 1403

Guess you like

Origin blog.csdn.net/qq_44749796/article/details/105565907