Commit 7870f4fb by BellCodeEditor

save project

parent e7c4e887
Showing with 8 additions and 0 deletions
c = {'a':2,'b':7,'c':4}
k = input("你要买什么")
n = input("要几个")
if k in c:
print("总共"+k+"要"+str(c[k]*int(n))+"元~")
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