Commit 508ad2d2 by BellCodeEditor

auto save

parent b87741b4
Showing with 19 additions and 0 deletions
goods = {'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'垃圾食品':5,'黄金牛肉':9999999999999999,'奥利给':0,'淄博烧烤':100,'肯德基全家桶':66,'豪华套餐':10000000,'自动售货机':9.9,'啃鸡鸡':0.9}
goods.pop("农夫山泉")
print(goods)
\ No newline at end of file
student1 = {'语文':100,'数学':60,'英语':60}
student2 = {'语文':99.5,'数学':75.5,'英语':99.99}
student3 = {'语文':100,'数学':100,'英语':99.9999}
score = {'悟空':student1,'诺依':student2,'小贝':student3}
name=input("名字:")
infor=score[name]
for k,v in score.items():
print(infor)
\ No newline at end of file
weather={'北京':8,'上海':15,'广州':20,'深圳':21}
weather={'北京':8,'上海':15,'广州':20,'深圳':21}
data=weather.pop("北京")
print(data)
print(weather)
\ 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