1234567891011121314151617181920 |
- def f(a, b):
- print a, b
- f(1, 2)
- f(*[1, 2])
- f(*(1, 2))
- def g(a, b, *c):
- print a, b, c
- g(1, 2, 3)
- g(1, 2, 3, 4, 5, 6)
- g(*[1, 2])
- g(*[1, 2, 3, 4])
- g(*[1, 2, 3, 4, 5, 6, 7])
- g(*(1, 2, 3, 4, 5, 6, 7))
- g(1, *[7])
- g(1, *[7, 8, 9])
- g(1, 2, *(7,))
- g(1, 2, 3, *(7, 8, 9))
|