diff --git a/diy1.py b/diy1.py index ac21940..9e7ff80 100644 --- a/diy1.py +++ b/diy1.py @@ -7,5 +7,5 @@ students.remove("八戒") students.append("诺依") # 班上准备开始辩论赛,分为红(red)、蓝(blue)组, # 请用切片将班级列表的前2名加入到红组,后2名加入到蓝组 -red = students.remove[0:2] -blue = students.remove[2:4] +red = students[0:2] +blue = students[2:4]