python內置函數列表

打印出builtin的函數:

for builtin in dir(__builtins__):
  if (not (builtin.find("Error") >= 0 
           or builtin.find("Warning") >= 0 
           or builtin.find("Exception") >= 0)):
    print (builtin)
結果:
Ellipsis
False
GeneratorExit
KeyboardInterrupt
None
NotImplemented
StopIteration
SystemExit
True
__build_class__
__debug__
__doc__
__import__
__name__
__package__
abs
all
any
ascii
bin
bool
bytearray
bytes
chr
classmethod
compile
complex
copyright
credits
delattr
dict
dir
divmod
enumerate
eval
exec
exit
filter
float
format
frozenset
getattr
globals
hasattr
hash
help
hex
id
input
int
isinstance
issubclass
iter
len
license
list
locals
map
max
memoryview
min
next
object
oct
open
ord
pow
print
property
quit
range
repr
reversed
round
set
setattr
slice
sorted
staticmethod
str
sum
super
tuple
type
vars
zip


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章