Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Bitwise operation » ?

Definition 3.9 High School Computer Science · Chapitre 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).

Lire dans le chapitre →