Bitwise operator - different result (python vs javascript)

后端 未结 0 384
孤独总比滥情好
孤独总比滥情好 2020-12-01 01:16

In javascript:

var zx=1566202383
var xz=1
document.write(zx << xz | zx >>> 32 - xz)

result is -1162562530

In python (i

相关标签:
回答
  • 消灭零回复
提交回复
热议问题