Commit 4ee63833 by BellCodeEditor

save project

parent 83b73772
Showing with 12 additions and 0 deletions
sg={'白菜':5,'西红柿':6,'葱':3,'海带':8}
k=input('菜的名字')
z=input('价钱')
x=int(z)
if k in sg:
if x>sg[k]:
print('贵了,不买')
else:
print('便宜了,买')
else:
sg[k]=x
\ 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