Python-- naming convention

1. See name EENOW

  A meaningful name, as far as possible at a glance know what that means

2. underline nomenclature

  All lowercase words, connection between words _

  For naming variables, functions

3. The big hump nomenclature

  Directly connected to each word, each word capitalized

  For class naming

supplement:

  1. Variable names that begin with a single _ _x not from module import * statement to import

  2. before and after the variable name __x__ double _ is a system-defined variable names have special meaning to the interpreter

  3. starts with a double _ variable name __x local private variables of the class

Guess you like

Origin www.cnblogs.com/tangqijian/p/11210073.html