Commit 95cd8646 by BellCodeEditor

auto save

parent 26117c08
Showing with 15 additions and 2 deletions
student={'j':10,'s':11,'l':9,'a':10,'d':10,'h':12}
student['l']=10
student['x']=11
print(student)
\ No newline at end of file
s={'第一个':'猪八戒'}
s['第一个']='唐三藏'
s['第二个']='假行者'
s['第三个']='沙和尚'
s['第四个']='猪八戒'
print(s)
print(s['第四个'])
\ No newline at end of file
...@@ -7,9 +7,9 @@ v=input('请输入水果价钱:') ...@@ -7,9 +7,9 @@ v=input('请输入水果价钱:')
if k in cost: if k in cost:
if cost[k]>float(v): if cost[k]>float(v):
cost[k]=float(v) cost[k]=float(v)
print(k+'降价了,现价'+v+'元') print(k+'降价了,现价'+v+'元/斤')
else: else:
print(k+'涨价了,我们不买') print(k+'涨价了,我们不买')
else: else:
cost[k] = float(v) cost[k] = float(v)
print(k+'的价钱'+v+'元已上传~') print(k+'的价钱'+v+'元/斤已上传~')
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