結果 : how to implement hash function in python