python - What do *args and **kwargs mean? - Stack Overflow
https://stackoverflow.com/questions/287085/what-do-args-and-kwargs-mean
WEBWhat exactly do *args and **kwargs mean? According to the Python documentation, from what it seems, it passes in a tuple of arguments. def foo(hello, *args): print(hello) for each in args: print(each) if __name__ == '__main__': foo("LOVE", ["lol", "lololol"]) This prints out: LOVE. ['lol', 'lololol'] How do you effectively use them? python.
DA: 95 PA: 52 MOZ Rank: 62