也可以help用来检查Bool控制台中的值:
帮助(真)help(True)Help on bool object:class bool(int)
| bool(x) -> bool |
| Returns True when the argument x is true, False otherwise.
| The builtins True and False are the only two instances of the class bool.
| The class bool is a subclass of the class int, and cannot be subclassed.
|
| Method resolution order:
| bool | int | object |
帮助(假)help(False)Help on bool object:class bool(int)
| bool(x) -> bool |
| Returns True when the argument x is true, False otherwise.
| The builtins True and False are the only two instances of the class bool.
| The class bool is a subclass of the class int, and cannot be subclassed.
|
| Method resolution order:
| bool | int | object
博客介绍了在Java中可使用help检查Bool控制台中的值,说明了bool(x)函数根据参数x返回True或False,还指出bool类是int类的子类且不能被继承,同时给出了bool对象的方法解析顺序。

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



