Python automated development (5): Introduction to Python, Python encoding, receiving and execution parameters, analysis of string principles, and python Encoding
Python automated development (5): Python introduction, Python encoding, receiving and execution parameters, and analysis of string principles
Recommended books: python source code analysis
Import The py file in the same directory. After execution, the pyc bytecode is generated.
You can have tools to decompile pyc.
However, you do not need to pay attention to this issue in python3. The default value is UTF-8 encoding.
Utf8 is an optimization for unicode universal code compression.
You can use sys. argv to pass Parameters in through external parameters to obtain the result.
If the. pyc file is modified, the pyc file is automatically deleted and re-compiled when The py file is executed.
There is a buffer pool in python to improve efficiency and reduce the burden.
As long as you use the + connection, a new memory space will be created for storage.
A = ["ddd"]
B = ["dd", "ggg"]
B + "Y" will re-open up new memory space