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

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.

主站蜘蛛池模板: 泸溪县| 浠水县| 大方县| 鄂州市| 祁阳县| 会东县| 屯留县| 平乡县| 涿鹿县| 丹寨县| 龙门县| 紫金县| 龙井市| 永和县| 吉林省| 清河县| 德惠市| 宾阳县| 介休市| 富顺县| 响水县| 西贡区| 遂宁市| 勃利县| 南部县| 图们市| 始兴县| 台湾省| 无棣县| 云阳县| 淳化县| 泰和县| 南部县| 万宁市| 柯坪县| 江源县| 五大连池市| 邻水| 精河县| 浮山县| 泽普县|