| 曹,偷偷的把自己驾照拿出来喵了眼,没错哦,是c1! 
 这位楼主,你怕是没开过车哦!
 如果你考过驾照就知道什么是c1 什么是c2.
 
 如果你没有考过车,我给你这样解释什么是c1和c2,
 
 复制代码class DrivingLicense:
    def __init__(self, type):
        self.type = type
        self.vehicles = []
class C2License(DrivingLicense):
    def __init__(self):
        super().__init__("C2")
        self.vehicles = ["小型汽车"]
class C1License(C2License):
    def __init__(self):
        super().__init__()
        self.type = "C1"
        self.vehicles.extend(["小型自动挡汽车", "小型手动挡汽车"])
 如果你连代码也看不懂,小学生一名啊.
 
 就喜欢看这种迷之自信的人.
 
 |