Recommendation 1: Understand the concept of Pythonic.
Recommendation 2: Write Pythonic code.
Recommendation 3: Understand the difference between Python and C language.
Recommendation 4: Add comments to the code appropriately.
Recommendation 5: It is more elegant and reasonable to lay out the code by adding spaces appropriately.
Recommendation 6: Four Principles of Writing Function
Recommendation 7: Concentrate constants in one file.
Recommendation 8: Use assert statements to find problems.
Recommendation 9: It is not recommended to use intermediate variables when exchanging values.
Suggestion 10: Make full use of the characteristics of Lazyevaluation.
Suggestion 1 1: Understand the defects of alternative implementation of enumeration.
Recommendation 12: Type checking is not recommended.
Suggestion 13: Try to convert to floating-point type before division.
Suggestion 14: Beware of the security vulnerability of eval ()
Suggestion 15: Use enumerate () to get the index and value of sequence iteration.
Suggestion 16: Distinguish the applicable scenarios of = and is.
Recommendation 17: Consider compatibility and use Unicode whenever possible.
Suggestion 18: Build a reasonable package hierarchy to manage modules.
Suggestion 19: Use the fromimport statement with caution.
Recommendation 20: Use absoluteimport to import modules first.
Recommendation 2 1: I+= 1 is not equal to++i.
Recommendation 22: Use with to automatically shut down resources.
Recommendation 23: Use the else clause to simplify the loop (exception handling)
Recommendation 24: Follow some basic principles of exception handling.
Recommendation 25: Avoid possible pitfalls in finally.
Recommendation 26: Deeply understand None and correctly judge whether the object is empty.
Recommendation 27: The connection string should take precedence over+.
Recommendation 28: Use as much as possible. Use format instead of% when formatting strings.
Recommendation 29: Treat mutable objects and immutable objects differently.
Recommendation 30: [], () and {}: Consistent container initialization form
Recommendation 3 1: Remember that function parameters are neither values nor references.
Recommendation 32: Beware of potential problems with default parameters.
Recommendation 33: Use variable length parameters with caution.
Recommendation 34: Deeply understand the difference between str () and repr ().