A primer
1 What is data?
x=10,10 is the data we want to store.
2 Why data is divided into different types
Data is used to represent States, and different States should be represented by different types of data.
3 Data Types
Numbers (shaping, long-shaped, floating-point, plural)
String
BYTE string: Describes the byte bytes type when introducing character encoding
List
Meta-group
Dictionary
Collection
4 Expand Data Type learning by following several points
# A: Basic use 1 use 2 definition way 3 common operation + built-in method # Two: summary of the type 1 save a value or save multiple values Only one value can be stored for multiple values, and the value can be what type 2 ordered or unordered 3 variable or immutable !!! Variable: The value changes, the ID does not change. Variable = not hash !!! Immutable: The value changes, and the ID is changed. Immutable = = can be hashed
Python Tour: Data type