Python is called python in Chinese. Usually, Python is a computer programming language. As an object-oriented dynamic typing language, it was originally designed for writing automated scripts (shell). With the continuous updating of the version and the addition of new language functions, it is increasingly used in the development of independent and large-scale projects.
Python adheres to a clear and unified design style, which makes Python a widely used language that is easy to read and maintain, and is welcomed by a large number of users.
The general guiding ideology of designers is that there is only one best way to solve a specific problem. This is expressed in the Python maxim written by Tim Peters (called Zen in Python): There should be one-and preferably only one-obvious method. This is completely contrary to the central idea of Perl (another high-level dynamic language with similar functions) TMTOWTDI (more than one method).
Python's author deliberately designed a very strict grammar, which made bad programming habits (such as the next line of if statement not indented to the right) unable to compile. One of the most important items is Python's indentation rules.
One difference from most other languages (such as C) is that the boundary of the module is completely determined by the position of the first character in each line (while C uses a pair of curly braces to clearly define the boundary of the module, regardless of the position of the characters). This has caused controversy. Because since the birth of a language like C, the grammatical meaning of the language has been separated from the arrangement of characters, which was once considered as an improvement of programming language. But it is undeniable that Python does make the program clearer and more beautiful by forcing programmers to indent (including all places where modules are needed, such as if, for and function definitions).
Related recommendation: The python Tutorial is the detailed content of python Chinese name shared by Bian Xiao. I hope it will help everyone. For more Python tutorial information, please pay attention to other related articles of Global Ivy!