Commit b5b545b6 by BellCodeEditor

save project

parent 83b73772
Showing with 25 additions and 0 deletions
lb=[A:11,B:22,C:33,D:44]
K=input("请输入学生姓名:")
V=input("请输入学生成绩:")
if K in lb:
if int(V)>lb[K]
lb[K]=int(V)
print("成绩+K+更新为+V+")
else:
print("成绩未更新")
else:
score[K]=int(V)
\ No newline at end of file
lb={'A':11,'B':22,'C':33,'D':44}
K=input("请输入学生姓名:")
V=input("请输入学生成绩:")
if K in lb:
if int(V)>lb[K]:
lb[K]=int(V)
print("成绩+K+更新为+V+")
else:
print("成绩未更新")
else:
lb[K]=int(V)
print(lb)
print(lb)
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