Commit ce914b71 by BellCodeEditor

save project

parent 618cf27b
Showing with 9 additions and 0 deletions
x = {"a":3,"b":7,'c':5}
k = input("你要买什么呀")
if k in x:
y = int(input("要几个"))
i = x[k]*y
print("总共"+str(i)+"元")
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