Python learning notes, python learning Manual
Start learning python!
Chapter1 Introducton
1. python Executable File: add a sentence # At the beginning #! /Usr/bin/python: grant the execution right, chmod u + x ***. py, and then you can directly execute the command. O (distinct _ distinct) O ~
2. the python string is non-mutable. Strings have many convenient operations: len (), [:], find, replace, split, upper, issalpha, rstrip
3. Pattern Matching: import re -- learn later
4. List: an ordered set of any type of objects. Operation: len, [], append, pop, insert. remove, nesting, list Parsing
5. dictionary: similar to c ++ map, the same dictionary key value and ing value in python can be of any type and can also be nested, a little powerful!
6. tuples: unchangeable list
7. file:
Chapter2 numbers
1. math module: contains the vast majority of c ++
2random Module
3. Other tools: decimal, fraction, etc.
4. Set