Python Internal execution process:
Python file python core runtime environment
Built-in module interpreter
Lexical Analysis of Class library
Custom module syntax parsing objects and types
Compiling memory management
Execution status
The interpreter does not save the code;
The file is all content once saved into memory, and then the interpreter one line of parsing;
3.5 print must be followed by parentheses;
#! /usr/bin/python can omit Python at execution time, mainly for Linux, and need to set permissions for files;
Windows is #! /usr/bin/env python
#-*-Coding:utf-8-*-: Tell the interpreter to UTF8 code//Python 3 It's all right.
ASCII code: 8-bit can include all English, characters, numbers, ASCII
Universal Code unicode:1 characters at least 2 bytes 16 bits, 1 men with 3 bytes marked
Utf-8:
English 8
Europe 16
English 24
Gbk:unicode are coded differently
Python default ASCII;
Python Architecture knowledge