What do >> and << mean in Python?

后端 未结 7 1792
无人共我
无人共我 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
    
    0 讨论(0)
提交回复
热议问题