{"url":"https://python-remrin.hatenadiary.jp/entry/2017/05/31/162927","blog_title":"Remrin\u306epython\u653b\u7565\u65e5\u8a18","published":"2017-05-31 16:29:27","provider_url":"https://hatena.blog","version":"1.0","title":"\u30d3\u30c3\u30c8\u64cd\u4f5c","height":"190","image_url":null,"provider_name":"Hatena Blog","categories":["python","numpy"],"author_name":"rare_Remrin","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpython-remrin.hatenadiary.jp%2Fentry%2F2017%2F05%2F31%2F162927\" title=\"\u30d3\u30c3\u30c8\u64cd\u4f5c - Remrin\u306epython\u653b\u7565\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"python\u306e\u30d3\u30c3\u30c8\u64cd\u4f5c\u306b\u3064\u3044\u3066 \u30d3\u30c3\u30c8and, or, xor, not & :\u30d3\u30c3\u30c8and | :\u30d3\u30c3\u30c8or ^ :\u30d3\u30c3\u30c8xor ~ :\u30d3\u30c3\u30c8not(\u53cd\u8ee2) print(bin(0b0101 & 0b1100)) # 0b100 print(5 & 12) # 4 print(bin(0b0101 | 0b1100)) # 0b1101 print(5 | 12) # 13 print(bin(0b0101 ^ 0b1100)) # 0b1001 print(5 ^ 12) # 9 print(bin(~0b0101)) # -0b110 print(~5) # -6 \u30d3\u30c3\u30c8\u30b7\u30d5\u30c8 >> \u2026","blog_url":"https://python-remrin.hatenadiary.jp/","author_url":"https://blog.hatena.ne.jp/rare_Remrin/","width":"100%","type":"rich"}