Discuss / Python / 完成作业很积极

完成作业很积极

Topic source

class Screen(object):

    @property

    def width():

        psss

    @property

    def height():

        pass

    @width.setter

    def width(self,width):

        self.__width = width

    @height.setter

    def height(self,height):

        self.__height = height

    @property

    def resolution(self):

        return self.__width * self.__height


  • 1

Reply