第一:
for i in range(4): return (1 << i)
第二个:
for i in range(4): return (2^i)
有人可以解释为什么2之间存在差异?
python bit-shift
bit-shift ×1
python ×1