Python is a widely used computer language, but some people are still puzzled by it. The following article is a detailed description of what it does not understand, for example, in the syntax expression and other related content, I hope you will gain some benefits when browsing the following articles.
Python language
Python can be run in command line or interactive mode. It also has a graphical integration environment, which makes it quite convenient to develop Python. Now, many visual programming software written in Python has been used to implement functions like Delphi.
Object-oriented
Python is a real object-oriented language. It even supports exception handling. If you have learned Java, you should be familiar with it. However, other scripting languages, such as PHP, do not seem to have any. This makes the compilation of the program clearer without many error checks.
Modules and packages
This is more like Java. For Java support, you can understand JPython. JPython is a Python written in Java. It fully supports Java. In this environment, you can use Java class libraries freely. Language extensions can use C, C ++, or Java to write new language modules, such as functions, for Python. It can be directly compiled with the Python language, or implemented through dynamic library loading. Someone has also compiled a tool to automatically implement function Interface encapsulation for Python. This is SWIGSimplified Wrapper and Interface Generator), or it is called simple encapsulation and Interface Generator.
- Python features
- The Python language is used in the MySQL database to solve the problem.
- Six application methods in Python Development
- Steps for installing the MySQLDb module in Python
- Installation and configuration of Python scripts
Interesting syntax
Guido believes that Python syntax is very elegant. One of them is that the block statement is not a {} pair commonly used in the C language, or another symbol pair, but uses the near representation! Interesting. In this regard, Guido's explanation is: first, using the near representation reduces visual confusion and shortens the program, in this way, the scope of attention to basic code units is reduced. Secondly, it reduces the degree of freedom of the programmer and is more conducive to unified style, making it easier to read other people's programs. I think it is good. in C language, there are several kinds of braces behind the if statement. Different people like different things and it is better to unify them.
After the definition of each class or function, the first line can be a description statement without the annotator mark. For the statement followed by the block statement, it should be followed by a colon. A row of statements cannot be too long because there is no line terminator. If it is too long, use the line break (\). There are also some interesting examples, such as the following comparison processing, using the C language:
- if (2<a&&a<5)
-
It can be expressed
- if (2<a<5) :
-
What is Zope?
Zope is an open-source Web application server developed in Python. It allows you to easily build content management, intranets, portals, and other custom applications.
A highly object-oriented Web development platform developed in Python.
It can run on almost all popular operating systems and supports multiple languages.
It can be integrated into other popular servers and also comes with servers.
Provides clear data/logic/representation separation.
With scalable built-in objects and powerful integrated security modules.