二进制
python的bin()
函数返回的是符号+'0b'+无符号下的原码
,但用x >> i & 1
求第i
为的二进制表示时,是补码形式。
1 | bin(5) |
python的bin()
函数返回的是符号+'0b'+无符号下的原码
,但用x >> i & 1
求第i
为的二进制表示时,是补码形式。
1 | bin(5) |
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
1 | FileInput = False |
https://www.lanqiao.cn/problems/2114/learning/
1 | # n酒店,m花 |