为什么run不出来,空格要填啥

img

img


课上的题目,关于 面向对象程序设计,我的代码哪里出错了,我自己找不出来

def __init__()
这里是两个下划线

class Commodit:
    def __init__(self, name, price, discount):
        self.name = name
        self.price = price
        self.discount = discount
    def show(self):
        print(self.name, self.price)
oranges = Commodit('chengzi', 6, 0.9)
oranges.show()