#1
class Apple:
    def __init__(self, brand, color, weight, price):
        self.brand = brand
        self.color = color
        self.weight = weight
        self.price = price

meigetu = Apple("名月", "黄色", 100, 108)
print(meigetu.brand)
print(meigetu.price)