Python notes (two) - identifiers, keywords

1, the identifier

Variable name (1) defines the function name, class name, etc.

(2) letters, numbers, underscores, and can not begin with a number

(3) must be unique keyword

(4) Do the same name with the built-in function or class, otherwise it will cover the features of the original built-in functions

(5) is case sensitive

2, Keyword

Internal (1) Python identifiers have been used

(2) having a special function and meaning

(3) you can see which keywords command keywords

Import modules: import keyword

Print Keywords: print (keyword.kwlist)

Guess you like

Origin www.cnblogs.com/bingmengzhang/p/11433348.html