kuroko/test/testArgumentExpansions.krk

7 lines
187 B
Python
Raw Normal View History

2021-01-03 11:59:50 +03:00
def func(a,b,*args,**kwargs):
print("a =",a,"b =",b)
print("args =",args,"kwargs =",kwargs)
2021-01-03 11:59:50 +03:00
print("\[[31mCall starts here.\[[0m")
2021-01-03 11:59:50 +03:00
func(1,*[1,2,3],**{"foo":"bar"},stuff="things")