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

  • 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.

主站蜘蛛池模板: 平南县| 广安市| 阿尔山市| 波密县| 河东区| 阿克苏市| 房产| 朝阳区| 和政县| 沙湾县| 体育| 关岭| 崇文区| 贡嘎县| 丘北县| 四会市| 灵宝市| 克东县| 汉沽区| 霞浦县| 通河县| 台南市| 灵川县| 宁波市| 安宁市| 安徽省| 天长市| 永福县| 玛曲县| 和政县| 广平县| 繁昌县| 济阳县| 图木舒克市| 高州市| 辽阳县| 恩平市| 曲松县| 威远县| 财经| 龙泉市|