Python似乎不支持函数重载:
>>> def overload(x,y):
... return x*y
...
>>> def overload(x,y,z):
... return x*y*z
...
>>> overload(1,2)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: overload() takes exactly 3 arguments (2 given)
>>> overload(1,2,3)
6
>>>
是否只是特定版本的python或python从不支持函数重载?