Commit b992b78d by BellCodeEditor

save project

parent fd9f108d
Showing with 21 additions and 0 deletions
s={'小张':100,'锤锤':0}
k=input("请输入你的姓名:")
v=input("请输入你的分数:")
if k in s:
if int(v)>s[k]:
s[k]=int(v)
print(K+'同学,恭喜你的成绩一刷新为'+v+"分")
else:
print("你的成绩没被更新")
else:
s[k]=int(v)
print(K+'同学,恭喜你的第一次成绩'+v+"分")
\ No newline at end of file
sp={'核弹':444,'M416':222,'氢弹':99999999,'窝窝头':99999999,'M416通用子弹':321343}
k=input('你要买什么')
if k in sp:
print('您的'+k+'需要'+str(sp[k])+'兆')
else:
print('钱不够')
\ 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