find - 我是新手,我需要在这段代码中找到 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()
惠特尼秀
解决方案
推荐阅读
- r - 用于矩阵运算的 for 循环
- python - 更新 MongoDB 集合中的所有文档
- python - 我有三个数字数组,比方说 A、B 和 C,我试图找出 A 和 B 的哪个组合最接近 C 数组
- css - 蚂蚁设计中的“gx-”前缀代表什么
- javascript - 如何让我的桌面应用程序从浏览器运行?
- java - 如何使用 firebase 向 android 和 ios 设备发送通知?
- apache - 如何使用 apache mode_rewrite 规则重定向到动态 URL(不是经典重定向)?
- java - 有人可以解释如何将大量秒数转换为可读的分钟和秒吗?
- java - 如果应该在实现它的子类中定义接口,接口有什么用
- python - 导航工具栏未显示在窗口中