Commit af6a4e87 by BellCodeEditor

save project

parent 1a1d264b
Showing with 13 additions and 1 deletions
......@@ -4,7 +4,7 @@ cost= {'苹果':5.2,'山竹':12.9,'香蕉':2.4,'荔枝':15,'葡萄':9.3,'桂圆'
k=input('请输入水果名称:')
v=input('请输入水果价钱:')
# ?补充条件判断:
if # ?:
if :
# ?更新价钱
print(k+'降价了,现价'+v+'元')
else:
......
q = {"农夫山泉":2,"尖叫":6,"冰红茶":4}
q.pop("农夫山泉")
print(q)
\ No newline at end of file
score = {"小明":98,"小美":90,"小刚":99}
for i in score:
print(i)
# for i in score.values:
# print(i)
#for i in score.items:
# print(i)
#print(score.items)
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