用最有效率的方法计算 2 乘以 8?

2 << 3(左移3位相当于乘以2的3次方,右移3位相当于除以2的3次方)。

猜你喜欢

转载自www.cnblogs.com/kristse/p/bitcalculate.html