clear 字典的清除操作 #!/usr/bin/python # -*- coding: UTF-8 -*- dict = { 'name': '博客地址', 'alexa': 10000, 'url': 'http://blog.csdn.net/'} dict.clear(