Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
刚开始 python 需要做二进制来拒绝(反之亦然),但 int(.
这很奇怪,这很好用:
int('0b10101010', 2) => 170
这也是如此:
bin(170) => '0b10101010'