1. = = = =
=
= =: Comparison values are equal
is: Compare, compare memory address
2. ID (content): Get the initial memory address of the content
3. Number, string, the existence of a small data pool concept, if you create the same number or string, and is a small range, but also assigned to two different names of variables, but these two variables will share the same memory.
The range of the digital small data pool is -5~256, if the number is within this range, and if more than one variable is created with this number equals this number, then these variables are actually using the same memory address.
String: If two identical strings contain special characters and are assigned to two variables, then these two variables will not use the same memory address, if the two same strings do not contain special characters, then the two variables use the same memory address. The small data pool pattern of strings needs to be explored later.
It is primarily a small data pool concept for both numbers and strings, primarily to save memory space
4. In addition to numbers and strings, the remaining Python data types do not have the concept of a small data pool.
Python clutter point of knowledge