Commit 9c66ce01 by BellCodeEditor

auto save

parent 9ed85b40
Showing with 8 additions and 0 deletions
ct={'果冻':1,'可口可乐':3,'肉铺':2}
p=input('你要买什么东西')
t=input('你要买几份')
if p in ct:
print('你买的'+p+'一共要'+str(ct[p]*int(t)))
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