class
Foo(
object
):
pass
Bar(Foo):
# type() 函数用于验证类型
print
(
type
(Foo())
=
Foo)
# True
(Bar())
# False