#代码如下:
print("Python3实例-----Python 移除字典点键值(key/value)对")
#方法一
test_dict = {
"Runoob": 1, "Google": 2, "Taobao": 3, "Zhihu": 4}
print("字典移除前 : " + str(test_dict))
del test_dict['Zhihu'
#代码如下:
print("Python3实例-----Python 移除字典点键值(key/value)对")
#方法一
test_dict = {
"Runoob": 1, "Google": 2, "Taobao": 3, "Zhihu": 4}
print("字典移除前 : " + str(test_dict))
del test_dict['Zhihu'