# Python 3 class Point(tuple): def __init__(self,x,y): super().__init__((x,y)) Point(2,3)
会导致
TypeError: tuple() takes at most 1
argument (2 given)
为什么?我该怎么做呢?
# Python 3 class Point(tuple): def __init__(self,x,y): super().__init__((x,y)) Point(2,3)
会导致
TypeError: tuple() takes at most 1
argument (2 given)
为什么?我该怎么做呢?