Python callable() 函数
定义和用法
The callable()
function returns True if the specified object is callable, otherwise it returns False.
语法
callable(object)
参数值
参数 | 描述 |
---|---|
object | 您想要测试是否可调用的对象。 |
The callable()
function returns True if the specified object is callable, otherwise it returns False.
callable(object)
参数 | 描述 |
---|---|
object | 您想要测试是否可调用的对象。 |
If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
[email protected]
If you want to report an error, or if you want to make a suggestion, send us an e-mail:
[email protected]