Commit 3b2d1317 by BellCodeEditor

save project

parent 9c395955
Showing with 4 additions and 8 deletions
cost={'苹果':5.2,'山竹':12.9,'香蕉':2.4,'荔枝':15,'葡萄':9.8,'桂圆':8,'蓝莓':10,'李子':10}
k = input('请输入水果名称')
v = input('请输入价钱')
if cost[k]>v in:
cost[k]=v更新价钱
print(k+'降价了,现价'+v+'元')
\ No newline at end of file
score = {'wk':{'yw':120,'sx':120,'yy':100}}
for k,v score.items():
print(k+'=>'str(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