Python syntax is similar to C, Java, where the python base points are different from C, Java, and so on.
1. Identifiers that begin with an underscore are of special significance, with a single underline, a class attribute that is not directly accessible by a representative of _f must be accessed through the interface provided by the class, and cannot be imported with the From XXX import *; __f that begins with a double underline represents a private member of the class; The _f__ represents the identity of a particular method in Python, such as __init__ (), which represents the constructor of the class.
2, the variable assignment in Python does not require a type declaration, Python has five standard data types: Numbers (numeric) string (string) list (list) Tuple (tuple) Dictionary (dictionary), tuple is not allowed to update, The list is allowed to be updated. 3. The From...import statement Python's from statement lets you import a specified section from the module into the current namespace.