Use of *args and **kwargs [duplicate]
问题 This question already has an answer here: What does ** (double star/asterisk) and * (star/asterisk) do for parameters? 19 answers So I have difficulty with the concept of *args and **kwargs . So far I have learned that: *args = list of arguments - as positional arguments **kwargs = dictionary - whose keys become separate keyword arguments and the values become values of these arguments. I don\'t understand what programming task this would be helpful for. Maybe: I think to enter lists and