• 2022-05-28
    ‏在前面几题的基础上,有子类Dog和Cat继承了父类Animal,如下空格的输出是以下哪个选项?‍‏dog = Dog('coco','small'); cat = Cat('kawaii') >>> isinstance(dog, Animal) ___________ >>> isinstance(cat, Animal) ___________ >>> isinstance(dog, Dog) ___________ >>> isinstance(dog, Cat) ____________‍
    A: True True False False
    B: True True True False
    C: True False False True
    D: True True True True