机器人
积分排行榜
Scratch
积分排行榜
Python
在线答题
积分排行榜
活跃排行榜
打字练习
Microbit
C++
在线答题
积分排行榜
活跃排行榜
网盘
积分
未登录
未登录
登录学习
作者:
冯彦喆
更新时间:
2026-01-17 15:48
浏览:
12次
点赞:
2次
热度:
20
class Cat: name="猫" colour="yellow" def chi(self): print(self.colour+self.name+"吃鱼") red=Cat() red.chi() class Dog: name="狗" colour="green" def chi(self): print(self.colour+self.name+"吃肉") d=Dog() d.chi()
点赞成功
分享作品
×