Commit 8975b700 by BellCodeEditor

save project

parent f2567328
Showing with 3 additions and 0 deletions
...@@ -2,4 +2,6 @@ dict={'可乐':3,'牛奶':4,'橙汁':6,'咖啡':7} ...@@ -2,4 +2,6 @@ dict={'可乐':3,'牛奶':4,'橙汁':6,'咖啡':7}
k=input("你想要什么:") k=input("你想要什么:")
if k in dict: if k in dict:
print("你要的"+k+"价钱"+str(dict[k])) 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