- 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.
推薦閱讀
- Data Visualization with D3 4.x Cookbook(Second Edition)
- Advanced Machine Learning with Python
- Apache ZooKeeper Essentials
- Linux核心技術從小白到大牛
- MongoDB for Java Developers
- Android NDK Beginner’s Guide
- Amazon S3 Cookbook
- Xamarin.Forms Projects
- C語言程序設計
- 領域驅動設計:軟件核心復雜性應對之道(修訂版)
- PySide 6/PyQt 6快速開發與實戰
- AIRIOT物聯網平臺開發框架應用與實戰
- Yii Project Blueprints
- Instant PHP Web Scraping
- Web前端應用開發技術