書名: 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.
推薦閱讀
- Mastering NetBeans
- PowerCLI Cookbook
- Java編程指南:基礎知識、類庫應用及案例設計
- 前端架構:從入門到微前端
- Learning Neo4j 3.x(Second Edition)
- Mastering Unity Shaders and Effects
- The DevOps 2.4 Toolkit
- Spring Boot企業級項目開發實戰
- 批調度與網絡問題的組合算法
- OpenCV 4計算機視覺項目實戰(原書第2版)
- Getting Started with Python
- 實驗編程:PsychoPy從入門到精通
- 例解Python:Python編程快速入門踐行指南
- Clojure for Finance
- Python程序設計教程