摘要:
class HouseItem: def __init__(self, name, area): self.name = name self.area = area def __str__(self): return ("%s占地面积时%f平方" % (self.name, self.area)) 阅读全文
posted @ 2025-08-08 14:37
hml-future
阅读(4)
评论(0)
推荐(0)
摘要:
class Dog: def __init__(self,name,color): self.name = name self.color = color def __str__(self): print("一只%s的狗叫%s" % (self.color,self.name)) def bark( 阅读全文
posted @ 2025-08-08 13:56
hml-future
阅读(2)
评论(0)
推荐(0)

浙公网安备 33010602011771号