Commit d0ac1b9b by BellCodeEditor

save project

parent 79353ebc
Showing with 7 additions and 3 deletions
students = ["悟空", "小贝", "八戒", "波奇"] students = ["悟空", "小贝", "八戒", "波奇"]
# 八戒因为要回老家,转学了,请将八戒从班级列表名单中删除 # 八戒因为要回老家,转学了,请将八戒从班级列表名单中删除
? students.pop('八戒')
# 班上来了一个新同学,名叫score = {'语文':91,'数学':88,'英语':85}
# 班上来了一个新同学,名叫"诺依",请将"诺依"加入到班级名单里面 # 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来
for i,j in score.items():
print(i,j)
students.insert('')
,请将"诺依"加入到班级名单里面
? ?
# 班上准备开始辩论赛,分为红(red)、蓝(blue)组, # 班上准备开始辩论赛,分为红(red)、蓝(blue)组,
......
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