Commit 68906e78 by BellCodeEditor

save project

parent de12c7b3
Showing with 14 additions and 0 deletions
a={"小":90,"明":86,"红":78,"梓":69}
k=input('请输入名字:')
v=input('请输入分数:')
if k in a:
if int(v)<a[k]:
a[k]=int(v)
print(k+',成绩太低'+v+",无法录入")
else:
if int(v)>a[k]:
print(k+'的成绩'+v+'成功录入~')
else:
a[k] = int(v)
print(k+'无法录入')
\ 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