标签:
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
python 模拟 java hashcode
原文地址:http://www.cnblogs.com/martinsun/p/5048897.html