1. class Car:
    2. def __init__(self):
    3. self.color = "红色"
    4. def drive(self):
    5. print(f"车的颜色为{self.color}")
    6. car_one = Car()
    7. car_one.drive()
    8. car_two = Car()
    9. car_two.drive()