class Car: def __init__(self): self.color = "红色" def drive(self): print(f"车的颜色为{self.color}")car_one = Car()car_one.drive()car_two = Car()car_two.drive()