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
时间: 2024-11-05 20:39:32
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