Commit f810a74d by BellCodeEditor

auto save

parent 502609b5
Showing with 8 additions and 0 deletions
dict_hero = {'1':1,'2':2,'3':3,'4':5}
# 提取"4"的值
print(dict_hero['4'])
# print(dict_hero)
# 修改"4"的值为4
dict_hero['4'] = 4
print(dict_hero)
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