首先介绍两者的基本用法。 下面一个例子使用*args,同时包含一个必须的参数: def test_args(first, *args): print 'Required argument: ', first for v in args: ...
確定! 回上一頁