📜  翻转特定位python代码示例

📅  最后修改于: 2022-03-11 14:45:57.354000             🧑  作者: Mango

代码示例1
# To flip the kth bit of x, XOR it with 1 leftshifted k times 
x = x ^ (1 << k)