函数的函数名重名

def test1():
    print('Hello World')

def test1(a, b, c):
    print('third Hello World')
    
def test1(a, b):
    print('second Hello World')


test1(1, 2, 3)                # 函数名重复只能使用最后的那一个

  

                                                                   -------  知识无价,汗水有情,如需搬运请注明出处,谢谢!

原文地址:https://www.cnblogs.com/wf-skylark/p/9008591.html