Commit 4805177a by BellCodeEditor

save project

parent e99f1799
Showing with 2 additions and 1 deletions
......@@ -4,7 +4,7 @@ j=input("你要买什么?")
if j in dict:
print('需要'+str(dict[j])+'元')
k=input('你需要几个?')
sum=dict[j]*k
sum=dict[j]*int(k)
print('你需要支付'+str(sum)+'元')
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