class Flower():
def __init__(self,name,color,meaning):
self.name=name
self.color=color
self.meaning=meaning
flower_list=[Flower('牡丹','粉色','富贵'),Flower('百合','白色','纯洁'),Flower('玫瑰','红色','热情')]
print(flower_list[0].name,flower_list[0].color,flower_list[0].meaning)
print(flower_list[1].name,flower_list[1].color,flower_list[1].meaning)
print(flower_list[2].name,flower_list[2].color,flower_list[2].meaning)
发表回复