Commit 69c21593 by BellCodeEditor

save project

parent 2509aea1
Showing with 4 additions and 12 deletions
sb = ["悟空", "小贝", "八戒", "波奇"] sb = "我c你妈"
dsb=input("请说出你华而不适的废话")
# 八戒因为被我吃了,请将八戒从班级列表名单中删除 for i in dsb:
sb.pop(2) print(i)
# 班上来了一个新同学,名叫"诺依",请将"诺依"加入到班级名单里面
sb.remove('诺依')
# 班上准备开始辩论赛,分为红(red)、蓝(blue)组,
# 请用切片将班级列表的前2名加入到红组,后2名加入到蓝组
red = sb[:2]
blue = sb[2:]
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