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