結果 : implement hash function in python