【发布时间】:2010-10-22 01:56:29
【问题描述】:
Windows XP、Python 2.5:
hash('http://stackoverflow.com') Result: 1934711907
Google App Engine (http://shell.appspot.com/):
hash('http://stackoverflow.com') Result: -5768830964305142685
这是为什么呢?我怎样才能有一个哈希函数可以在不同平台(Windows、Linux、Mac)上给我相同的结果?
【问题讨论】:
-
这是因为你的 winxp 是 32 位平台,而 google 的是 64 位
标签: python google-app-engine hash