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 删除字典元素