摘要: ####判断奇偶性 if num & 1 == 1: num % 2 == 1 # nums is odd number if num & 1 == 0: num % 2 == 0 # num is even number ####异或 当 num 是偶数时,num + 1 = num ⊕ 1 当 阅读全文
posted @ 2022-02-14 09:28 小艾衰 阅读(29) 评论(0) 推荐(0) 编辑