打印出builtin的函数:
for builtin in dir(__builtins__):
if (not (builtin.find("Error") >= 0
or builtin.find("Warning") >= 0
or builtin.find("Exception") >= 0)):
print (builtin)
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
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
property
quit
range
repr
reversed
round
set
setattr
slice
sorted
staticmethod
str
sum
super
tuple
type
vars
zip
完!
本文通过Python代码展示了标准库中所有内置函数的名称,排除了错误、警告和异常相关的条目。这些内置函数覆盖了从基本的数据类型操作到高级的运行时功能。

被折叠的 条评论
为什么被折叠?



