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

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.

主站蜘蛛池模板: 宽甸| 江源县| 武定县| 雅安市| 淮安市| 仁布县| 鹤岗市| 合肥市| 温宿县| 垫江县| 卫辉市| 大庆市| 绥芬河市| 清徐县| 广平县| 阜城县| 马山县| 江达县| 漠河县| 正镶白旗| 婺源县| 湟中县| 建宁县| 基隆市| 宾阳县| 屯留县| 海阳市| 和顺县| 察隅县| 衡水市| 渭源县| 吉水县| 安福县| 泾源县| 宜兰县| 武胜县| 锦州市| 青海省| 新蔡县| 五河县| 泰和县|