官术网_书友最值得收藏!

  • Learn Python in 7 Days
  • Mohit Bhaskar N. Das
  • 42字
  • 2021-07-09 20:40:26

Bitwise operators

Python supports bitwise operations. You might have come across AND, OR, or complementary operations:

The following screenshot illustrates the various usages of bitwise operators:

~x will give -241, which is in 2's complement form due to a signed binary number.

主站蜘蛛池模板: 嘉定区| 荃湾区| 伊宁市| 茌平县| 抚松县| 南投县| 吉木萨尔县| 陇西县| 成安县| 奎屯市| 搜索| 广灵县| 苗栗市| 新田县| 达州市| 恭城| 邮箱| 会昌县| 阿鲁科尔沁旗| 札达县| 崇信县| 茂名市| 永泰县| 丰城市| 基隆市| 冕宁县| 卢氏县| 江永县| 克拉玛依市| 溧水县| 盘锦市| 天门市| 阳西县| 佛坪县| 皮山县| 榆树市| 临夏县| 广南县| 开封市| 新干县| 蒙自县|