python中 bool 是 int 子类吗

issubclass(bool, int) # bool 是 int 子类

答案:是True

猜你喜欢

转载自blog.csdn.net/rocling/article/details/89965498