Commit 25863773 by BellCodeEditor

save project

parent ae186e65
Showing with 18 additions and 4 deletions
......@@ -9,20 +9,34 @@
# break
# print(list_hero)
# 请注释掉上面的代码,并在下一行创建一个名为dict_hero的字典
dict_hero={'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30}
dict_hero['猴一']=70
# HP = {'杀跌三文鱼':111111111,'牛逼雷碧':67648,'马牛逼薯片':234567,'老王鱼子酱':46754,'王宣的屎':23456}
# k = input("™的,你要啥")
# if k in HP:
# print("sb,你买的东西"+k+"需要支付"+str(HP[k])+"元")
# else:
# print("gun,没有")
fs = {'王**':0,'王™':10,'王sb':0.1}
k = input("sb输入姓名")
v = input("sb输入你的成绩")
if k in fs:
if int(v)>fs[k]:
fs[k]=int(v)
print("sb"+k+"成绩更新为"+v+"分")
else:
print("没更新,gun")
else:
fs[k]=int(v)
print("第一次成绩已上传")
dict_hero['猴五']=25
print(dict_hero)
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