Hashable, immutable
问题 From a recent SO question (see Create a dictionary in python which is indexed by lists) I realized I probably had a wrong conception of the meaning of hashable and immutable objects in python. What does hashable mean in practice? What is the relation between hashable and immmutable? Are there mutable objects that are hashable or immutable objects that are not hashable? 回答1: Hashing is the process of converting some large amount of data into a much smaller amount (typically a single integer)