dm/python/test.py

6 lines
137 B
Python
Executable File

my_dict = {'name': 'Tom', 'age': 18, 'gender': 'ale'}
# 在原来的键上添加新的值
my_dict['name'] = 'Jerry'
print(my_dict)