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.)