Module
The module is a file containing all of your defined variables and functions, added multiplexing, and the module file must be suffixed with the PY
When we import the module using import, for example, the import sys will be in the Sys. The path of the py is searched for this module
The form SYS Import * Imports all the variable names in SYS and does not recommend
Each module has its own __name__, when __name__ equals __main__, indicating that the module is executed separately
Dir () enumerates all the function classes and variables
Enrich Module Knowledge Later
Data
[1:3] The second element to the fourth element # is calculated from 0, the index if it is negative from the back forward called a part of the sequence
[:] Returns a copy of the sequence!
list, tuple, dictionary ["A", "B", "C"]
List lists are similar to arrays
Tuples are similar to lists, but the values cannot be changed! ("A", "B", "C")
Dictionaries are similar to JSON, that is, key-value pairs
Reference
Direct replication does not create a copy if you want to copy it must be [:]
Methods for string Classes
Cond....
Python Concise-2 (only to list the differences in other languages)