Commit 0a3fd0e5 by BellCodeEditor

auto save

parent 1ad61536
Showing with 13 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(stu)
else:
print("您的成绩不用修改...")
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