题解 | 淘汰排名最后的学生
# stu_name = input().split(' ') # stu_name.pop() # stu_name.pop() # stu_name.pop() # print(stu_name) stu_name = input().split(' ') new_list = [] i = 0 while i < len(stu_name) - 3: new_list.append(stu_name[i]) i += 1 print(new_list)
# stu_name = input().split(' ') # stu_name.pop() # stu_name.pop() # stu_name.pop() # print(stu_name) stu_name = input().split(' ') new_list = [] i = 0 while i < len(stu_name) - 3: new_list.append(stu_name[i]) i += 1 print(new_list)
相关推荐