def test(a, *args, **kwargs): print a print args print kwargs if __name__ == "__main__": test(1, 2, 3 , d='4', e=5) # 输出 1 (2, 3) {'e': 5, 'd': '4'}
def test(a, *args, **kwargs): print a print args print kwargs if __name__ == "__main__": test(1, 2, 3 , d='4', e=5) # 输出 1 (2, 3) {'e': 5, 'd': '4'}