Commit 9f65712f by BellCodeEditor

save project

parent 1b3e166b
Showing with 7 additions and 7 deletions
b={'a':1,'b':2}
b['a']=100
b['b']=200
b['c']=300
print(b)
if 'c' in b:
print(b['c'])
b={'a':10000,'b':20000}
b['c']=30000
k=input('你想买什么?')
if k in b:
print('请支付'+str(b[k])+'元')
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