Classification
1. Numerical type
Int:python3 int is a long integer with no size limit and is limited by the size of the memory area.
Float: There are real and fractional parts, supported by decimal and scientific notation.
Complex: Complex number, with real and imaginary part of two parts, real and imaginary part is a floating point, example: 3+4j
Bool:int subclasses, only 2 instances, true,false corresponding to 1 and 0, can be directly calculated with a positive number.
2. Sequence objects
String STR:
Lists List
An ordered queue whose elements can be arbitrary objects, support slicing operations, are linearly variable data structures, and are represented using [].
List query:
Index (Value,[start,[stop]]), by specifying the interval to find whether the elements within the list match, the first match immediately return to the index, the match will not run out of the exception Valueerro
cout (value): Returns the number of occurrences of the value in the list
Time complexity: Both index and Count methods are O (n), which decreases as the scale of the list data increases.
Len (): Returns the number of list elements
The built-in data structure of Python learning