Commit 8c2437b0 by BellCodeEditor

save project

parent 6a980f48
Showing with 13 additions and 0 deletions
cost= {'平果':5.2,'山竹':1234567899,'想叫':90.9}
k=input('水果名称:')
v=input('水果价钱:')
if k in costcost:
if float(v)<cost[k]:
cost[k]= float(v)
print(k+'便易了,现在'+v+'元')
else:
print(k+'不买了')
else:
cost[k] = float(v)
print(k+'的价钱'+v+'元以上传')
\ 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