diy1.py 342 Bytes Edit 1 2 3 4 5 6 7 8 9 10 11 12 students = ["悟空", "小贝", "八戒", "波奇"] # students.pop(2) students.append("诺依") # 班上准备开始辩论赛,分为红(red)、蓝(blue)组, # 请用切片将班级列表的前2名加入到红组,后2名加入到蓝组 red = students[0:2] blue = students[2:4] print(red) print(blue)