function name duplicate

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) # Only the last one can be used when the function name is repeated

  

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325830238&siteId=291194637