全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Bitwise operation?

Definition 3.9 High School Computer Science · 第 3 章 — Integers in the Machine

A bitwise operation works on each bit position separately. In Python, a & b has a 11 where both a and b have a 11 (and); a | b where at least one has a 11 (or); a ^ b where exactly one has a 11 (exclusive or, xor); and ~a flips every bit (not; for Python’s integers, ~a equals -a - 1).

在原文中阅读 →