Python3 删除字典 Python3 访问字典数据项 Python3 字典键属性 Python3 删除字典 #!/usr/bin/python3 dict = {'Name': 'Zara', 'Age': 7, 'Class': 'First'} del dict['Name'] # remove entry with key 'Name' dict.clear() # remove all entries in dict del dict # delete entire dictionary print ("dict['Age']: ", dict['Age']) print ("dict['School']: ", dict['School']) Python3 访问字典数据项 Python3 字典键属性