首页 > 解决方案 > 我是新手,我需要在这段代码中找到 3 个错误。您不能删除也不能插入新的代码行

问题描述

类宠物():

def init(自我,类型,颜色):

self.type = type

self.color = color

 

def show(self):

  print(type, "is", self.model )

  print("color is", self.color )

 

奥斯汀=宠物(“奥迪a4”,“蓝色”)

惠特尼 = 宠物(“法拉利 488”、“绿色”)

奥斯汀.show()

惠特尼秀

标签: find

解决方案


推荐阅读