Commit cf8aa4f5 by BellCodeEditor

auto save

parent e0c8260d
Showing with 7 additions and 2 deletions
# 创建字典
# 'a':1 'b':2 'c':4
dict_char = {}
dict_char = {'a':1,'b':2,'c':4}
# 提取'c'的值
print(dict_char['c'])
# 修改'c'的值为3
dict_char['c'] = 3
print(dict_char)
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