day02 每日一行
题目要求
根据字典内容打印出下面的形式(编程)
{"Development":"开发小哥","OP":"运维小哥","Operate":"运营小仙女","UI":"UI小仙女"}
效果如下:
Development --- 开发小哥
OP --- 运维小哥
Operate --- 小仙女
代码展示
dict = {"Development": "开发小哥", "OP": "运维小哥", "Operate": "运营小仙女", "UI": "UI小仙女"}
# 1. 删除了UI
del dict["UI"]
# 2. 修改了Operate
dict["Operate"] = "小仙女"
for key in dict:
print(key + " --- " + dict[key])