Commit 6fa325e9 by BellCodeEditor

save project

parent 8995c07e
Showing with 3 additions and 15 deletions
seort={'小明':77,'老王':100,'小张':58,'小美':86} goods = {'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3}
k=input('大帅比,你叫什么:') dict.clear(2)
v=input('嗷~那多少分啊:') print(goods)
if k in seore:
if int(v)>score[k]:
score[k]=int(v)
print('亲爱的'+k+'同学,恭喜你~成绩已更新为'+v+'分!')
else:
print('亲爱的'+k+'同学,很遗憾,你没刷新啊!嘿嘿嘿')
else:
score[k] = int(v)
print('亲爱的'+k+'同学,您的第一次成绩'+v+'分已上传~')
\ 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