博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
python 模拟 java hashcode
阅读量:6937 次
发布时间:2019-06-27

本文共 200 字,大约阅读时间需要 1 分钟。

def hashCode(value):    h=0    if h == 0 or len(value) > 0:          for i in range(0,len(value)):            h = 31*h + int(value[i]);    return h

 

转载于:https://www.cnblogs.com/martinsun/p/5048897.html

你可能感兴趣的文章