Commit ada42cb7 by BellCodeEditor

save project

parent aa21e6d0
Showing with 6 additions and 7 deletions
dict={} dict={'马雨泽':0.1,'同浩泽':0.2,'魏子轩':0.01,'依依老师':1000}
dict['苹果']=90 a=input("你要什么?")
dict['梨']=70 if a in dict:
print(dict) print("你买的"+a+"是"+str(dict[a])+"元")
if '梨' in dict:
print(dict['梨'])
else: else:
print("不在") 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