class item:
    def __init__(self, name, price):
        self.name = name
        self.price = price
#创建一个item对象将之赋值给im变量
im = item("鼠标", 29.8)
print(im)
print(im.__repr__)
a31ed0fe8657b527a0c8ac71333e8b166364a18f
class item:
    <mask token>


<mask token>

class item:

    def __init__(self, name, price):
        self.name = name
        self.price = price


<mask token>

class item:

    def __init__(self, name, price):
        self.name = name
        self.price = price


<mask token>
print(im)
print(im.__repr__)

class item:

    def __init__(self, name, price):
        self.name = name
        self.price = price


im = item('鼠标', 29.8)
print(im)
print(im.__repr__)

class item:
    def __init__(self, name, price):
        self.name = name
        self.price = price
#创建一个item对象将之赋值给im变量
im = item("鼠标", 29.8)
print(im)
print(im.__repr__)