面试题答案
一键面试class Car:
def __init__(self, brand, model, color):
self.brand = brand
self.model = model
self.color = color
def start(self):
print('汽车已启动')
def stop(self):
print('汽车已停止')
class Car:
def __init__(self, brand, model, color):
self.brand = brand
self.model = model
self.color = color
def start(self):
print('汽车已启动')
def stop(self):
print('汽车已停止')