Discuss / Python / 错误记录,如果用self.width会报错

错误记录,如果用self.width会报错

Topic source

cacaty

#1 Created at ... [Delete] [Delete and Lock User]

class Screen(object):

    @property

    def width(self):

        return self.width

    @width.setter

    def width(self, width):

        self.width = width


  • 1

Reply