Python 更新字典 python 访问字典数据项 Python 删除字典元素 Python 更新字典 #!/usr/bin/python dict = {'Name': 'Zara', 'Age': 7, 'Class': 'First'} dict['Age'] = 8; # update existing entry dict['School'] = "DPS School"; # Add new entry print "dict['Age']: ", dict['Age'] print "dict['School']: ", dict['School'] python 访问字典数据项 Python 删除字典元素