A detailed description of Python development technology (I.)

Source: Internet
Author: User

Python is a simple, dynamic language. From today on, I have to take notes every day, every day to write a blog record What I think, what I learned.

Notes outline:

1,python a brief introduction to Python's compilation usage, what to note.

2, naming rules

3, constant

1,python a brief introduction to Python's compilation usage, what to note.

Python is a relatively new, more advanced language. In other words, because of advanced, there is no strict distinction between pointers and other variables. In other words, being familiar with Python (not skilled) spends a lot less time than other languages.

Python is a dynamic compilation language. Features are code simplification and flexibility.

The difference between py,pyc,pyo

The binary file form of the PYc. py file.

Import py_compilefilename='py_compile.compile (filename);

The PYO is an optimized py program.

Execute at the command line: Python-o-M py_compile file.py to generate the Pyo file.

2, naming rules

1, class name in uppercase

2, add two underscores before the private variable.

3, the object name is in lowercase letters.

4, the first letter of the method name is lowercase, followed by the first letter of each word capitalized.

3, constant

Python does not provide a reserved word such as Const. However, you can customize a method to implement constants.

  

  

A detailed description of Python development technology (I.)

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.