What is the pythonic way to overload a class without using external modules?

后端 未结 0 424
感动是毒
感动是毒 2020-11-27 10:06

Consider the following class:

class Vector2():
    def __init__(self, x: float = 0, y: float = 0) -> None:
        self.x = x
        self.y = y

相关标签:
回答
  • 消灭零回复
提交回复
热议问题