Commit c048e0bb by BellCodeEditor

save project

parent ada42cb7
Showing with 10 additions and 6 deletions
dict={'马雨泽':0.1,'同浩泽':0.2,'魏子轩':0.01,'依依老师':1000} dict={'马雨泽':1,'同浩泽':60,'魏子轩':0.1,'依依老师':1000,'刘文浩':100}
a=input("你要什么?") a=input("你叫什么?")
b=input("你考了多少?")
if a in dict: if a in dict:
print("你买的"+a+"是"+str(dict[a])+"元") if int(b)>dict[a]:
dict[a]=int(b)
print("已更新")
else:
print("不更新")
else: else:
print("已经死了") dict[a]=int(b)
print("已添加")
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