03-HT-Get_2.py 164 B

12345
  1. def __hash(self, key):
  2. my_hash = 0
  3. for letter in key:
  4. my_hash = (my_hash + ord(letter) * 23) % len(self.data_map)
  5. return my_hash