Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/343.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 为什么是1<&书信电报;3+;1<&书信电报;4 = 256?_Python_Binary_Bit Manipulation_Bit_Boolean Algebra - Fatal编程技术网

Python 为什么是1<&书信电报;3+;1<&书信电报;4 = 256?

Python 为什么是1<&书信电报;3+;1<&书信电报;4 = 256?,python,binary,bit-manipulation,bit,boolean-algebra,Python,Binary,Bit Manipulation,Bit,Boolean Algebra,我认为它将等于1这是因为python的操作顺序,加法在左移位运算符之前计算。这个表达式相当于 (1<<(3+1))<<4 (1(1

我认为它将等于1这是因为python的操作顺序,加法在左移位运算符之前计算。这个表达式相当于

(1<<(3+1))<<4
(1
(1