書名: 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.
推薦閱讀
- 手機安全和可信應用開發指南:TrustZone與OP-TEE技術詳解
- SAS數據統計分析與編程實踐
- Mastering Linux Network Administration
- 深入RabbitMQ
- 硅谷Python工程師面試指南:數據結構、算法與系統設計
- Python機器學習:預測分析核心算法
- Learning AWS
- GameMaker Essentials
- Mastering Elasticsearch(Second Edition)
- Android 游戲開發大全(第二版)
- Python編程入門(第3版)
- Learning Ionic(Second Edition)
- Build Your Own PaaS with Docker
- LiveCode Mobile Development Hotshot
- Building RESTful Web Services with PHP 7