Commit 25d9901d by BellCodeEditor

auto save

parent c3c2cd26
Showing with 1 additions and 1 deletions
......@@ -2,6 +2,6 @@ dict={"农夫山泉":2,"旺仔牛奶":3,"可口可乐":3,"巧克力":3,"乐事":
k=input("你想买什么?")
j=input("你想买的数量是什么?")
if k in dict:
print("你的"+k+"需要"+str(dict[k])*str(dict[j])+"元")
print("你的"+k+"需要"+str(dict[k]*float(j))+"元")
else:
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