Python basics 2. python Basics
Iii. Analysis of variables, objects and values
1. If you don't remember it, it will be finished.
1.1 remember: all data is an object
1.2 remember: all variables are references to data objects.
1.3 analysis: reference count sys. getrefcount in python
2. variable naming rules
2.1 remember what you can do. It must start with a letter.
2.2 remember what you cannot do. You cannot use keywords.
2.3 The most reasonable combination: the file name is lower case, the variable is lower case, and the function name is lower case. _ Make the variable clearer.
2.4 case sensitive.
3. assign values
3.1 remember dynamic features.
More than 3.2 values are assigned.
3.4 Delete.
4. Life
1. The three built-in functions must be well-developed. Type, help, dir.
2. Use built-in methods to learn str objects.
3. I have to deal with a string with a bad ending and a strange space at the beginning. What should I do.
4. self-taught.