python基础31[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

 

完!

posted @ 2011-01-06 13:13  iTech  阅读(1636)  评论(0编辑  收藏  举报