1. 关于函数传参 def func(n, *args, **kwargs): print n print args print kwargs if __name__ == '__main__': # func(2, 5,7,9, m = 1, q = 0) n = 2 args = (5, 7, 9) kwargs = {'m':1, 'q':0} func(n, args, kwargs) func(n, *args, **kwargs) func(n=n, args=args, kwarg…