Python first day

Source: Internet
Author: User

1.NAME.PYC is a bytecode file, similar to a DLL file in C #. Where code is executed in the following order: code----bytecode---machine code

Python files in the process of performing the first comparison between the m.py file and the M.pyc file, if the two files are the same, priority to execute bytecode files, if different, first convert the m.py file to the corresponding bytecode file, and then execute the bytecode file.

2.if name== "Zhangsan" value compare if Name is "Zhangsan" memory contrast

3. Placeholder

(1) name = ' I am%s ', age%d '% (' ss ', "a") equivalent to name = ' I am%s ', age%d ' name% (' Alex ', 73 ') ""I Am SS, age "

(2) name= "I am {0}, age {1}" Name.format ("Alex", 123)

Python first day

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.