Since the Python language developed to 3.X, there are many syntactic sugars, such as:
- Three-dimensional expression
代码块
2. Encapsulation and Deconstruction
3. Analytic type
1). List analytic type
2). Set Analytic type
3). Dictionary analytic type
The role of analytic formula
1). The Python interpreter has been specifically optimized for parsing, and the multi-write parsing will make the program more concise and efficient.
2). The analytic formula can write the program statement like the function expression, which embodies the characteristic of Python3 object-oriented functional programming. Nested parsing, build the skeleton of the program, and then replace the corresponding data structure of the head (such as the list of analytic head for the list ...), it can be elegant and efficient construction of the general program.
Python3 's grammatical sugar and analytic formula