{"id":155,"date":"2020-04-28T11:35:13","date_gmt":"2020-04-28T15:35:13","guid":{"rendered":"https:\/\/hanaki.cc\/?p=155"},"modified":"2020-04-28T11:35:13","modified_gmt":"2020-04-28T15:35:13","slug":"190-reverse-bits","status":"publish","type":"post","link":"https:\/\/wordpress-ubxn6zvl-ded.cloady.io\/index.php\/2020\/04\/28\/190-reverse-bits\/","title":{"rendered":"190.reverse-bits"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.geeksforgeeks.org\/python-bitwise-operators\/\">https:\/\/www.geeksforgeeks.org\/python-bitwise-operators\/<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u56e0\u4e3a\u662funsigned bit\uff0c\u548c\u666e\u901aint\u4e0d\u4e00\u6837<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u601d\u8def\uff0c\u770b\u7b54\u6848\u540e\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u53cc\u6307\u9488\uff0c\u4e00\u4e2a\u6307\u9488\u8bfbn\u7684\u672b\u4f4d\u548c1\u505a&amp;\u903b\u8f91\u8fd0\u7b97\uff08if both 1 return 1 else 0)\uff0c\u56e0\u4e3a1\u53ea\u67091\u4f4d\uff0c\u6240\u4ee5\u9ed8\u8ba4\u548c\u672b\u5c3epk\uff1b\u6bd4\u8f83\u5b8c\u540e\u5f97\u5230\u7684\u7ed3\u679c\uff0c\u52a0\u5230\u65b0\u961f\u4f0d\uff08\u67d0\u53d8\u91cf\uff0c\u521d\u59cb\u503c0\uff09\u91cc\uff0c\u65b0\u961f\u4f0d\u8981\u4fdd\u8bc1\u52a0\u8fdb\u6765\u7684\u7ed3\u679c\u5728\u5c3e\u90e8\uff0c\u56e0\u6b64\u5728\u505a\u52a0\u6cd5\u524d\uff0c\u7528\u4f4d\u79fb\u628a\u5df2\u6709\u7684\u90e8\u5206\u5f80\u524d\u79fb\u52a8\u4e00\u683c\uff0c\u5728bit\u8fd0\u7b97\u91cc\uff0c\u79fb\u52a8\u5411\u5de6\u79fb\u52a8\u4e00\u683c\u7528&lt;&lt;\u8868\u793a\u3002\u5b8c\u6bd5\u540e\uff0c\u628an\u6307\u9488\u6307\u5411\u5012\u6570\u7b2c\u4e8c\u683c\uff0c\u51c6\u5907\u8fdb\u5165\u4e0b\u4e00\u8f6e\u5faa\u73af\u3002\u6307\u5411\u5012\u6570\u7b2c\u4e8c\u683c\u4e5f\u8981\u7528\u5230>>\u7684\u65b9\u6cd5<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/www.geeksforgeeks.org\/python-bitwise-operators\/ \u56e0\u4e3a\u662funsigned bit\uff0c\u548c\u666e\u901aint\u4e0d\u4e00\u6837 \u601d\u8def\uff0c\u770b\u7b54\u6848\u540e\uff1a \u53cc\u6307\u9488\uff0c\u4e00\u4e2a\u6307\u9488\u8bfbn\u7684\u672b\u4f4d\u548c1\u505a&amp;\u903b\u8f91\u8fd0\u7b97\uff08if both 1 return 1 else 0)\uff0c\u56e0\u4e3a1\u53ea\u67091\u4f4d\uff0c\u6240\u4ee5\u9ed8\u8ba4\u548c\u672b\u5c3epk\uff1b\u6bd4\u8f83\u5b8c\u540e\u5f97\u5230\u7684\u7ed3\u679c\uff0c\u52a0\u5230\u65b0\u961f\u4f0d\uff08\u67d0\u53d8\u91cf\uff0c\u521d\u59cb\u503c0\uff09\u91cc\uff0c\u65b0\u961f\u4f0d\u8981\u4fdd\u8bc1\u52a0\u8fdb\u6765\u7684\u7ed3\u679c\u5728\u5c3e\u90e8\uff0c\u56e0\u6b64\u5728\u505a\u52a0\u6cd5\u524d\uff0c\u7528\u4f4d\u79fb\u628a\u5df2\u6709\u7684\u90e8\u5206\u5f80\u524d\u79fb\u52a8\u4e00\u683c\uff0c\u5728bit\u8fd0\u7b97\u91cc\uff0c\u79fb\u52a8\u5411\u5de6\u79fb\u52a8\u4e00\u683c\u7528&lt;&lt;\u8868\u793a\u3002\u5b8c\u6bd5\u540e\uff0c\u628an\u6307\u9488\u6307\u5411\u5012\u6570\u7b2c\u4e8c\u683c\uff0c\u51c6\u5907\u8fdb\u5165\u4e0b\u4e00\u8f6e\u5faa\u73af\u3002\u6307\u5411\u5012\u6570\u7b2c\u4e8c\u683c\u4e5f\u8981\u7528\u5230>>\u7684\u65b9\u6cd5<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-155","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/wordpress-ubxn6zvl-ded.cloady.io\/index.php\/wp-json\/wp\/v2\/posts\/155","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress-ubxn6zvl-ded.cloady.io\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress-ubxn6zvl-ded.cloady.io\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress-ubxn6zvl-ded.cloady.io\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress-ubxn6zvl-ded.cloady.io\/index.php\/wp-json\/wp\/v2\/comments?post=155"}],"version-history":[{"count":0,"href":"https:\/\/wordpress-ubxn6zvl-ded.cloady.io\/index.php\/wp-json\/wp\/v2\/posts\/155\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress-ubxn6zvl-ded.cloady.io\/index.php\/wp-json\/wp\/v2\/media?parent=155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress-ubxn6zvl-ded.cloady.io\/index.php\/wp-json\/wp\/v2\/categories?post=155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress-ubxn6zvl-ded.cloady.io\/index.php\/wp-json\/wp\/v2\/tags?post=155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}