Commit 56e53e3e by BellCodeEditor

auto save

parent 9d7f7d7d
Showing with 5 additions and 5 deletions
......@@ -7,7 +7,7 @@ print(students)
students.extend("诺伊")
print(students)
# 请用切片将班级列表的前2名加入到红组,后2名加入到蓝组
red.list[0:2]
print(students)
blue.list[2:4]
print(students)
\ No newline at end of file
red=students[:2]
print(red)
blue=students[2:]
print(blue)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment