Disclaimer: purely their own turned over the review with no finishing system, fragmented Meng new knowledge (new giant Meng, chiefs do not see, want to see can do, help correct like ha ha ha ha) ... ~
1 >>> prompt: python meaning is ready, waiting to receive instructions.
3. # is the python of the Notes
4. Start shell: idle
The calculation formula can be entered directly, even 156165156165165 * 1561515616185156156, python can be considered correct pair.
6. \ n remains carriage escapes
Object-oriented still 8.python
7. In ctrl idle + n a new window
9. indentation is the soul of the python, to distinguish it with indented code blocks, so that the program code is streamlined.
10.int () is a built-in function, the contents of the brackets return an integer, and float (), str (), type (), isinstance (a variable, a data type) the same type of return Ture, False otherwise
11. Built-in functions, referred to as BIF (Built-in function: built-in function)
to see all the built-in functions: dir ( builtins )
12.help (built-in function name): python tell you the use of built-in functions
13.random.randint (1,10): Take a random number in the one to ten
14.15e11 = 150000000000 (10 zeros)
15. It is important to write Ture, can not write ture (False empathy)
16.a=5.99,c=int(a),c=5
17.len (variable): Display variable length
18.range ([start,] stop [ , step = 1])
The BIF has three parameters, which are indicated by two brackets of these two parameters are optional. step indicates how many (a step that is a plus 1, every step is a to a 2) (step can be negative, but not a decimal) (step default is 1) incremented each time. From start to stop within the range, including the start does not contain a stop. start can not write, the default starting from 0 (including 0)
19.list (): Displays a list of