1, the first choice: Version 2 or 3, I choose 2, conservative cautious, 3 of the maturity cycle will be very long
2. Three basic text operations:
2.1. Parse the data and deserialize the data into the program's data structure
2.2, the data in some way into another similar form, the data itself has changed.
2.3. Generate new data.
3. Why Python is selected for several reasons:
3.1, code quality: In line with the thinking habits of the brain: in a unified and limited way to interact in a set of compact core ideas on the basis of free play.
3.2, development efficiency: less energy to complete more tasks
3.3. Portability
3.4. Rich built-in standard library support
3.5. Component integration: For example, interactive integration with C + +
3.6. Code Fun
4. Pythonic principle: Import this
5, the disadvantage of Python: it must be slower than the compiled language
6, the technical advantages of Python: Object-oriented, free, portable, powerful, can be mixed, easy to use, easy to learn.
7. How the Python compiler environment runs the program: first compile the source code into a bytecode (. pyc file) and then execute it on PVM
8, Jython compiled python source code, the formation of Java bytecode.
9, Psyco is a PVM enhancement tool, this tool collects and uses information, when the program runs, you can convert some of the program's bytecode to the underlying real binary machine code, so as to achieve faster execution speed. Psyco are often seen as a kind of JIT.
10, Psyco may eventually be replaced by PyPy, pypy using Python code to implement PVM, like Psyco to provide enhanced optimization.
11. The Shedskin C + + converter attempts to translate Python code into C + + code.
12. The package distribution of Python program is called frozen binary, three kinds of tools: Py2exe,pyinstaller and freeze.
13, Python program run several forms: Interactive prompt mode, System command line file mode, under the GUI Click File icon, module import and overload, Exec run module file, IDLE.
14. Objects, assignments, and references.
15. Variable names must be assigned before they are referenced.
16. Sequence Assignment
17, DEF statements are executed in real time
18. LEGB principle of variable name resolution (p418)
19. Closures in Python
20. function parameter matching of Python
21, iterative and analytic: In terms of relative performance, list parsing is best performed in most cases. Map behaves better when using built-in functions.
22. Generator and co-process
23, Module Introduction, from import this place has pit---see "module traps"
24, adorners and meta-class reference open electronic version of the document.
Those words about Python.