The meaning of variables in 1.pytho: Define an area in memory to give a value, and then use a variable to refer to the defined value, the variable can be understood as a label, when the need to call which value to use the label to invoke, the variable can be re-assigned, the value will be re-assigned, the current values are replaced by the previous value, a value That is, multiple variables point to the same value, that is, the same value, and you can use the ID () function to see where the value referenced by the variable is in memory.
2. Assignment: For example, a=1, which means to assign a value of 1 to a variable a
3. Specification of variable name: Cannot start with a number, or a keyword as a variable name, can start with a letter, or _ and other special characters, for the variable naming is to follow easy to understand, so that the program is more humane
Python Learning notes-2 variables