setdata.py 236 B

123456789
  1. import hashlib
  2. def hash_func(lodds, rodds, ratio, ratio_name, oddsv):
  3. m = hashlib.md5()
  4. a = str(lodds) + str(rodds) + str(ratio) + str(ratio_name) + str(oddsv)
  5. m.update(a.encode('utf-8'))
  6. c = m.hexdigest()
  7. return c