当Python内置函数
Windows:
为什么会这样?
hash()
在跨平台时变得很奇怪。我有一个应用程序使用内置的hash()
来处理'test'
。两个系统都是64位,Python版本为2.7.12。Windows:
>>> hash('test')
1308370872
Linux:
>>> hash('test')
2314058222102390712
为什么会这样?
hash("test")
,每次返回的值都不同。 - user707650