📜  __init_ 中的显式返回 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:33.134000             🧑  作者: Mango

代码示例2
class Rectangle:
    def __init__(self, width, height):
        self.width = width
        self.height = height
        self.area = width * height
        # return statement removed from here