Commit e3d377f9 by BellCodeEditor

auto save

parent b0aa1a78
Showing with 45 additions and 5 deletions
...@@ -16,12 +16,52 @@ ...@@ -16,12 +16,52 @@
##for '孙悟空' in dict_hero: ##for '孙悟空' in dict_hero:
# print(dict_hero['孙悟空']) # print(dict_hero['孙悟空'])
#print(dict_hero) #print(dict_hero)
hp={"可乐":3,"雷碧":5,"农夫三拳":6,"六个核弹":8,"薯片":15} #hp={"可乐":3,"雷碧":5,"农夫三拳":6,"六个核弹":8,"薯片":15}
k = input("你想买啥?") #k = input("你想买啥?")
if k in hp: #if k in hp:
print("您好,你的"+k+"需要支付"+str(hp[k])+"元") # print("您好,你的"+k+"需要支付"+str(hp[k])+"元")
#else:
# print("不好意思,没有,")
cj={"张三":30,"李四":50,"王五":90}
k = input("请输入姓名")
v = input("请输入成绩")
if k in cj:
if int(v)>cj[k]:
cj[k]=int(v)
print("恭喜你的成绩更新成功"+v+"分")
else:
print("更新失败")
else: else:
print("不好意思,没有,") cj[k]=int(v)
print("恭喜你"+k+"你的成绩上传成功")
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