Detail the Python built in functions and reserved words
- 2020-12-18 01:52:21
- OfStack
Reserved words:
In [4]: import keyword
In [5]: keyword.kwlist
Out[5]:
['False',
'None',
'True',
'and',
'as',
'assert',
'break',
'class',
'continue',
'def',
'del',
'elif',
'else',
'except',
'finally',
'for',
'from',
'global',
'if',
'import',
'in',
'is',
'lambda',
'nonlocal',
'not',
'or',
'pass',
'raise',
'return',
'try',
'while',
'with',
'yield']
Other available:
A:
abs
abstractmethod
all
and
any
apply
as
ascii (python3 New)
assert
B:
basestring(python3 Deleted)
bin
bool
break
buffer ( python3 Deleted)
bytearray
bytes
C:
callable
class
classmethod
compile
complex
D:
def
del
delattr
dict
dir
divmod
E:
elif
else
eval
except
exec
execfile(python3 Delete)
F:
filter
finally
float
for
format
from
frozenset
G:
getattr
global
globals
H:
hasattr
hash
help
hex
I:
id
if
import
in
input
int
is
isinstance
isubclass
iter
L:
abs
abstractmethod
all
and
any
apply
as
ascii (python3 New)
assert
0
M:
abs
abstractmethod
all
and
any
apply
as
ascii (python3 New)
assert
1
N:
abs
abstractmethod
all
and
any
apply
as
ascii (python3 New)
assert
2
O:
object
oct
open
or
ord
P:
abs
abstractmethod
all
and
any
apply
as
ascii (python3 New)
assert
4
R:
abs
abstractmethod
all
and
any
apply
as
ascii (python3 New)
assert
5
S:
abs
abstractmethod
all
and
any
apply
as
ascii (python3 New)
assert
6
T:
abs
abstractmethod
all
and
any
apply
as
ascii (python3 New)
assert
7
V:
vars
W:
abs
abstractmethod
all
and
any
apply
as
ascii (python3 New)
assert
9
X:
xrange (python3 Deleted)
Y:
yield
Z:
zip
Welcome to add ~