Commit 8d27b89f by BellCodeEditor

save project

parent 02072908
Pipeline #2645 failed in 0 seconds
Showing with 4 additions and 2 deletions
...@@ -2,6 +2,8 @@ s=["悟空", "小贝", "八戒", "波奇"] ...@@ -2,6 +2,8 @@ s=["悟空", "小贝", "八戒", "波奇"]
# 八戒因为要回老家,转学了,请将八戒从班级列表名单中删除 # 八戒因为要回老家,转学了,请将八戒从班级列表名单中删除
s.pop(2) s.pop(2)
print(s) s.insert(2,"诺依")
# 班上来了一个新同学, # 班上来了一个新同学,
blue blue = s[2:4]
red = s[0:3]
print(s)
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