Python is an object-oriented interpreted computer programming language invented by Dutchman Guido van Rossum in 1989. The first public release was in 1991.
Python is pure free software. The source code and interpreter CPython comply with the GNU General Public License (GPL). Python syntax is clean and concise. One of its features is the mandatory indentation of statements with white space.
Python has a rich and powerful library. Often nicknamed the Glue language, it makes it easy to link together various modules made in other languages, especially C/C++. A common application scenario is to use Python to quickly prototype a program (and sometimes even the final interface of the program), and then rewrite the specific parts of the program in a more appropriate language, such as a graphical rendering module in a 3D game. Especially high performance, it can be rewritten in C/C++. It is then wrapped into an extended library that Python can call. It is important to note that you may need to consider platform issues when using extended class libraries, some of which may not provide cross-platform implementations.
Python has a rich and powerful library. Often nicknamed the Glue language, it makes it easy to link together various modules made in other languages, especially C/C++. A common application scenario is to use Python to quickly prototype a program (and sometimes even the final interface of the program), and then rewrite the specific parts of the program in a more appropriate language, such as a graphical rendering module in a 3D game. Especially high performance, it can be rewritten in C/C++. It is then wrapped into an extended library that Python can call. It is important to note that you may need to consider platform issues when using extended class libraries, some of which may not provide cross-platform implementations.
On July 20, IEEE released its 2017 ranking of programming languages: Python tops the list.
Pros and cons of Python:
advantages
Simplicity: Python is a language that stands for the idea of simplicity. Reading a good Python program feels like reading English. It allows you to focus on solving problems rather than figuring out the language itself.
Easy to learn: Python is extremely easy to learn because Python has extremely simple documentation [7].
Fast: Python’s underlying language is written in C, and many standard and third-party libraries are also written in C, which is very fast.
Free, open source: Python is one of FLOSS (free/open source software). Users are free to distribute copies of the software, read its source code, make changes to it, and use parts of it in new free software. FLOSS is based on the concept of a community sharing knowledge.
High level language: Programming in Python does not need to worry about low-level details such as how to manage the memory your program uses.
Portability: Due to its open source nature, Python has been ported to many platforms (with modifications to make it work on different platforms). These platforms include Linux, Windows, FreeBSD, Macintosh, Solaris, OS/2, Amiga, AROS, AS/400, BeOS, OS/390, Z /OS, Palm OS, QNX, VMS, Psion, Acom RISC OS, VxWorks, PlayStation, Sharp Zaurus, Windows CE, PocketPC, Symbian and Google’s Linux-based Android platform.
Interpretability: A program written in a compiled language such as C or C++ can be converted from a source file (C or C++) to a language your computer uses (binary code, 0 and 1). This process is done using the compiler and various tags and options.
When running the program, the link/reprinter software copies your program from hard disk to memory and runs it. Programs written in Python do not need to be compiled into binary code. You can run programs directly from source code.
Inside the computer, the Python interpreter converts the source code into an intermediate form called bytecode, which is then translated and run into the machine language the computer uses. This makes Python much easier to use. It also makes Python programs more portable.
Object-oriented: Python supports both procedural and object-oriented programming. In a “procedural oriented” language, programs are built from procedures or simply functions of reusable code. In “object-oriented” languages, programs are built from objects composed of data and functions.
Extensibility: If you need a critical piece of code to run faster or you want to keep some algorithms private, you can write parts of your program in C or C++ and use them in Python programs.
Embeddability: Python can be embedded in C/C++ programs to provide scripting functionality to program users.
Rich libraries: The Python standard library is really huge. It can help with a variety of jobs, including regular expressions, document generation, unit testing, threading, databases, Web browsers, CGI, FTP, E-mail, XML, XML-RPC, HTML, WAV files, password systems, GUIs (graphical user interfaces), Tk, and other system-related operations. This is called Python’s “full-featured” idea. In addition to the standard library, there are many other high-quality libraries, such as the wxPython, Twisted, and Python image libraries, to name a few.
Regular code: Python uses forced indentation to make code readable. Programs written in Python do not need to be compiled into binary code.
disadvantages
Single line statements and command line output problems: Many times programs cannot be concatenated on a single line, such as import sys; For I in sys.path:print I. Perl and AWk do not have this limitation and can easily write simple programs in the shell without having to write them to a.py file, as Python does.
Unique syntax
This probably shouldn’t be called a limitation, but the way it indents statements can confuse many beginners. Even experienced Python programmers can fall into this trap.
Slow: compared to C and C++.
Learn Python for free
Learn Python with zero basics
This series of Python3 video tutorials is designed for those who have no basic knowledge. Suitable for zero basic white, beginners, programming enthusiasts to learn!
Official website of Ali Yun University (Official website of Ali Yun University, Innovative Talent Workshop under cloud Ecology)