def make_list_of_lists(n): the_list = [] sublist = [] for i in range(n): print(sublist) the_list.extend(sublist) sublist = sublist.insert(len(sublist), i+1) return the_list
我不明白为什么会这样?