lst_set = [] for i in range(64): lst = list(map(int, input().split())) if len(lst) != 0: lst_set.append(lst) for i in range(len(lst_set)): del lst_set[i][0]#指定元素已经被删除,列表已经发生改变 print(sum(lst_set[i])) 程序果然玄学,哪位大神能告诉我range(64) case 100% ,小于64 case逐渐降低,大于64 case就为0%