What do >> and << mean in Python?

后端 未结 7 1812
无人共我
无人共我 2020-12-04 09:44

I notice that I can do things like 2 << 5 to get 64 and 1000 >> 2 to get 250.

Also I can use >> in pri

7条回答
  •  春和景丽
    2020-12-04 10:09

    << Mean any given number will be multiply by 2the power
    for exp:- 2<<2=2*2'1=4
              6<<2'4=6*2*2*2*2*2=64
    

提交回复
热议问题