python keywords and built-in functions

Python keywords (reserved words) List

From  http://c.biancheng.net/view/4188.html

 

 Reserved words are  Python  language, some of which have been given specific meaning of the word, which requires developers in the development process, can not use these reserved words as identifiers for variables, functions, classes, templates, and other object naming.

 

Table 1 Python reserved word list
and as assert break class continue
def of the elif else except finally
for from False global if import
in is lambda nonlocal not None
or pass raise return try True
while with yield      

 

 

 

Python built-in function list

  It should be noted that the developers do not recommend using the built-in function names as identifiers (as a variable, function, class, templates, or the names of other objects), although doing so Python interpreter does not complain, but this results built-in functions are covered by the same name, which can not be used.

Table 1 Python 3.x built-in functions
Built-in functions
abs() delattr() hash() memoryview() set()
all() dict() help() (I) setattr()
any() to you() hex() next() slicea()
ascii() divmod() id() object() sorted()
bin() enumerate() input() oct() staticmethod()
bool() eval() int() open() str()
breakpoint() exec() isinstance() words() sum()
bytearray() filter() issubclass() pow() super()
bytes() float() process () print() tuple()
callable() format() Only () property() type()
chr() frozenset() list() range() whose()
classmethod() getattr() locals() repr() zip()
compile() globals() map() reversed() __import__()
complex() Hsattr () max() round()  

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/zy09/p/11569090.html