天天看點

函數的函數名重名                                                                   -------  知識無價,汗水有情,如需搬運請注明出處,謝謝!

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)                # 函數名重複隻能使用最後的那一個
      

  

                                                                   -------  知識無價,汗水有情,如需搬運請注明出處,謝謝!