理解~ in Python
发布日期:2021-05-07 14:21:15 浏览次数:18 分类:精选文章

本文共 514 字,大约阅读时间需要 1 分钟。

  • Bitwise Operators

Bitwise operators are used to compare (binary) numbers:

Operator Name Description
& AND sets each bit to 1 if both bits are 1
| OR Sets each bit to 1 if one of two bits is 1
^ XOR Sets each bit to 1 if only one of two bits is 1
~ NOT Inverts all the bits
<< Zero fill left shift Shift left by pushing zeros in from the right and let the leftmost bits fall off
>> Singed right shift Shift right by pushing copies of the leftmost bit in from the left, and let the rightmost bits fall off
  • References

上一篇:举例实现理解 umask 000 on Linux
下一篇:服务器概念解析

发表评论

最新留言

网站不错 人气很旺了 加油
[***.192.178.218]2025年03月24日 23时22分32秒