>>> callable(Student())
True
>>> callable(max)
True
>>> callable([1, 2, 3])
False
>>> callable(None)
False
>>> callable('str')
False
>>> callable(Student())
True
>>> callable(max)
True
>>> callable([1, 2, 3])
False
>>> callable(None)
False
>>> callable('str')
False
本文标题:callable()判断一个对象是否是“可调用”对象
本文链接:https://www.haomeiwen.com/subject/fjtqextx.html
网友评论