{"author_url":"https://blog.hatena.ne.jp/rare_Remrin/","width":"100%","title":"bool\u3068\u6761\u4ef6","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpython-remrin.hatenadiary.jp%2Fentry%2F2017%2F05%2F12%2F112808\" title=\"bool\u3068\u6761\u4ef6 - 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>","image_url":null,"version":"1.0","blog_title":"Remrin\u306epython\u653b\u7565\u65e5\u8a18","description":"\u771f\u507d\u5024bool\u3084\u6761\u4ef6\u306a\u3069\u306b\u3064\u3044\u3066\u3002 \u771f\u507d\u5024bool \u30fbTrue, False\u306e2\u3064\u306e\u5024\u306e\u307f\u3002 \u30fbTrue,=1, False=0\u3067\u5909\u66f4\u3067\u304d\u306a\u3044\u3002(python2\u3067\u306f\u5909\u66f4\u3067\u304d\u305f) True = 0 # SyntaxError: can't assign to keyword False \u6570\u5024\u306e\u30bc\u30ed\u3001\u7a7a\u6587\u5b57\u5217\u3001\u7a7a\u914d\u5217\u3001False True \u4ed6\u3059\u3079\u3066 \u30fb\u5fc5\u8981\u306b\u306a\u3063\u305f\u3089\u3001True=1, False=0\u306e\u6570\u5024\u3068\u3057\u3066\u6271\u308f\u308c\u308b\u3002 print(True) # True print(True + True + 1) # 3 \u30fb\u6761\u4ef6\u5206\u5c90\u3084\u7e70\u308a\u8fd4\u3057\u306b\u4f7f\u3048\u308b\u3002 x = 5 if x > 0: print(x > 0)\u2026","categories":["python"],"author_name":"rare_Remrin","published":"2017-05-12 11:28:08","provider_name":"Hatena Blog","blog_url":"https://python-remrin.hatenadiary.jp/","height":"190","type":"rich","url":"https://python-remrin.hatenadiary.jp/entry/2017/05/12/112808","provider_url":"https://hatena.blog"}