Commit 3c224294 by BellCodeEditor

save project

parent b4880c54
Showing with 16 additions and 6 deletions
# 直接运行以下代码,说说你的发现: # 直接运行以下代码,说说你的发现:
dict_h={'猴7':56,'猴队长':10}
print(dict_h["猴7"])
print(dict_h) a={}
dict_h["猴队长"]=1000 a["香蕉"]=10
print(dict_h) a["香蕉1"]=120
\ No newline at end of file a["香蕉2"]=130
a["香蕉3"]=140
a["香蕉4"]=150
a["香蕉5"]=160
print(a)
k=input()
if k in a:
print("你需要的",k,"一共",a[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