Commit ecc02412 by BellCodeEditor

save project

parent 27f9418f
Showing with 8 additions and 3 deletions
...@@ -8,5 +8,10 @@ print(A) ...@@ -8,5 +8,10 @@ print(A)
A["7"]=5 A["7"]=5
print(A) print(A)
=input("你买什么") dict={'可口可乐':3,'旺仔牛奶'4,"农夫山泉":1}
k=input() k=input("你买什么")
\ No newline at end of file if K in dict:
print("叮咚您的"+k+"需要支付"+str(dict[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