Python Python 寫了 __eq__ 之後,物件為什麼不能放進去 set 替 class 寫了 __eq__,正常使用卻會出現 unhashable type 的錯誤。來看看 Python 為什麼這樣處理,以及 __hash__ 該怎麼做。