标签:bitwise-or
-
JavaScript和Python按位或运算给出了不同的结果 - javascript
JS console.log(1 | 1); // 1 console.log(1 | 0x8); // 9 console.log(1 | 0x80000000); // -2147483647 蟒蛇 print (1 | 1) # 1 print (1 | 0x8) # 9 print (1 | 0x80000000) # 2147483649 为什么最 […]
JS console.log(1 | 1); // 1 console.log(1 | 0x8); // 9 console.log(1 | 0x80000000); // -2147483647 蟒蛇 print (1 | 1) # 1 print (1 | 0x8) # 9 print (1 | 0x80000000) # 2147483649 为什么最 […]