書名: 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.
推薦閱讀
- 觸·心:DT時代的大數據精準營銷
- SpringMVC+MyBatis快速開發與項目實戰
- Effective C#:改善C#代碼的50個有效方法(原書第3版)
- Data Analysis with Stata
- Python機器學習經典實例
- Highcharts Cookbook
- Lighttpd源碼分析
- JavaScript程序設計(第2版)
- 編寫高質量代碼:改善Objective-C程序的61個建議
- Java Web從入門到精通(第3版)
- Kotlin Programming By Example
- Java從入門到精通(視頻實戰版)
- 軟件測試(慕課版)
- Parallel Programming with Python
- Oracle SOA Suite 12c Administrator's Guide