Commit 1ad61536 by BellCodeEditor

auto save

parent 3d5aa2a1
Showing with 15 additions and 0 deletions
stu={"赵":80,"钱":90,"孙":70,"李":75}
k=input("请输入名字:")
v=int(input("请输入成绩:"))
if k in stu:
if v>stu[k]:
stu[k]=v
print("您的成绩修改成功~")
print(stu)
else:
print("您的成绩不用修改!")
print(stu)
else:
stu[k]=v
print(stu)
\ 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