t282.py 273 B

1234567891011121314151617181920
  1. def f(a, b):
  2. print a, b
  3. f(1, 2)
  4. f(*[1, 2])
  5. f(*(1, 2))
  6. def g(a, b, *c):
  7. print a, b, c
  8. g(1, 2, 3)
  9. g(1, 2, 3, 4, 5, 6)
  10. g(*[1, 2])
  11. g(*[1, 2, 3, 4])
  12. g(*[1, 2, 3, 4, 5, 6, 7])
  13. g(*(1, 2, 3, 4, 5, 6, 7))
  14. g(1, *[7])
  15. g(1, *[7, 8, 9])
  16. g(1, 2, *(7,))
  17. g(1, 2, 3, *(7, 8, 9))