Add function PrintMap() in Go

This commit is contained in:
machangxin
2022-12-16 10:55:28 +08:00
parent e432f0b987
commit 26ad485dd2
3 changed files with 13 additions and 8 deletions

View File

@ -39,7 +39,7 @@ class ArrayHashMap:
""" 删除操作 """
def remove(self, key):
index = self.hashFunc(key)
# 置为空字符,代表删除
# 置为None,代表删除
self.bucket[index] = None
""" 获取所有键值对 """