What does the asterisk do in *a, b, c = line.split()?
问题 Assume line is: "Chicago Sun 01:52" . What does *a, b, c = line.split() do? In particular, what is the significance of the asterisk? Edit: Upon testing it, it seems like "Chicago" , "Sun" and "01:52" are all stored in a , b and c . The asterisk seems to lead to "Chicago" being stored in a as the first element of a list. So, we have a = ["Chicago"] , b = "Sun" and c = "01:52" . Could anyone point to material on the functionality of the asterisk operator in this situation? 回答1: Splitting that