哈希 table 和 Python 字典有什么区别?

What's the difference between a hash table and a Python dictionary?

我开始学习 C 中的散列 table 数据结构,并且我注意到(如果我理解正确的话)散列 table 与 python 词典。如果我不正确并且它们是两个完全不同的东西,有人可以向我解释什么是散列 table 而不需要太专业吗?谢谢

它们之间并没有什么区别。这就是 python 的字典不支持重复项的原因。这也是 python 具有 hash 函数的原因,python 的词典默认使用该函数。