Python automated development (5): Introduction to Python, Python encoding, receiving and execution parameters, analysis of string principles, and python Encoding

Source: Internet
Author: User

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

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.