# 多继承class House(object): def live(self): print("供人居住")class Car(object): def drive(self): print("行驶")class TouringCar(House, Car): passtour_car = TouringCar()tour_car.live()tour_car.drive()