{"id":316,"date":"2018-12-29T20:31:41","date_gmt":"2018-12-29T11:31:41","guid":{"rendered":"https:\/\/www.nblog09.com\/w\/?p=316"},"modified":"2025-09-26T16:00:36","modified_gmt":"2025-09-26T07:00:36","slug":"python-logical-character","status":"publish","type":"post","link":"https:\/\/www.nblog09.com\/w\/2018\/12\/29\/python-logical-character\/","title":{"rendered":"Python\u306e\u8ad6\u7406\u578b\uff08bool\uff09\u3068AND, OR\u6f14\u7b97\u5b50\u3092\u5229\u7528\u3057\u305f\u5b9f\u88c5\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac"},"content":{"rendered":"<p>Python\u306e<strong>\u8ad6\u7406\u578b\uff08bool\uff09, AND\u30fbOR\u6f14\u7b97\u5b50<\/strong>\u306b\u3064\u3044\u3066\u3001\u57fa\u790e\u7684\u306a\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3059\u308b\u3002<\/p>\n<h2 class=\"title-border\">Python\u8ad6\u7406\u578b\uff08bool\uff09\u306e\u57fa\u672c<\/h2>\n<p>Python\u306e\u8ad6\u7406\u578b\uff08boolean\uff09\u306f\u3001\u771f\u507d\u5024\u3092\u8868\u73fe\u3059\u308b\u305f\u3081\u306e\u57fa\u672c\u7684\u306a\u30c7\u30fc\u30bf\u578b\u3060\u3002<br \/>\n<strong>True\u3068False\u306e2\u3064\u306e\u5024\u3060\u3051<\/strong>\u3092\u6301\u3061\u3001\u4e3b\u306b\u6761\u4ef6\u5224\u5b9a\u3084\u30d5\u30e9\u30b0\u7ba1\u7406\u3067\u4f7f\u7528\u3055\u308c\u308b\u3002\u30b9\u30a4\u30c3\u30c1\u306e\u30aa\u30f3\u30fb\u30aa\u30d5\u306e\u3088\u3046\u306b\u30012\u629e\u3067\u5024\u3092\u8868\u73fe\u3059\u308b\u3002<\/p>\n<div class=\"sub-item\">\n<h3>\u8ad6\u7406\u578b\u306e\u57fa\u672c\u7684\u306a\u4f7f\u7528\u65b9\u6cd5<\/h3>\n<pre class=\"line-numbers\"><code class=\"language-python\"># \u8ad6\u7406\u578b\u306e\u5909\u6570\u5b9a\u7fa9\nis_student = True\nhas_license = False\n\nprint(type(is_student))  # <class 'bool'>\nprint(type(has_license))  # <class 'bool'>\n\n# \u8ad6\u7406\u578b\u306e\u78ba\u8a8d\nprint(is_student)   # True\nprint(has_license)  # False\n<\/code><\/pre>\n<p>\u8ad6\u7406\u578b\u306f<strong>bool\u30af\u30e9\u30b9<\/strong>\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3067\u3001\u5b9f\u969b\u306b\u306fint\u30af\u30e9\u30b9\u306e\u30b5\u30d6\u30af\u30e9\u30b9\u3068\u3057\u3066\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u3002\u305d\u306e\u305f\u3081\u3001True\u306f\u6570\u5024\u306e1\u3001False\u306f\u6570\u5024\u306e0\u3068\u3057\u3066\u6271\u308f\u308c\u308b\u3002\n<\/div>\n<div class=\"sub-item\">\n<h3>\u6761\u4ef6\u5206\u5c90\u3067\u306e\u8ad6\u7406\u578b\u6d3b\u7528<\/h3>\n<p>\u8ad6\u7406\u578b\u306e\u771f\u4fa1\u306f\u3001if\u6587\u3068\u7d44\u307f\u5408\u308f\u305b\u305f\u6761\u4ef6\u5206\u5c90\u3067\u767a\u63ee\u3055\u308c\u308b\u3002<\/p>\n<pre class=\"line-numbers\"><code class=\"language-python\">is_admin = True\nis_logged_in = False\n\nif is_admin:  # is_admin == True \u3068\u540c\u3058\u610f\u5473\n    print(\"\u7ba1\u7406\u8005\u753b\u9762\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\")\nelse:\n    print(\"\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u3068\u3057\u3066\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\")\n\nif not is_logged_in:  # is_logged_in == False \u3068\u540c\u3058\u610f\u5473\n    print(\"\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u304f\u3060\u3055\u3044\")\n<\/code><\/pre>\n<p><strong>not\u6f14\u7b97\u5b50<\/strong>\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u8ad6\u7406\u5024\u3092\u53cd\u8ee2\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002\u3053\u308c\u306f\u6761\u4ef6\u3092\u5426\u5b9a\u3057\u305f\u3044\u5834\u5408\u306b\u7528\u3044\u308b\u3002\n<\/div>\n<div class=\"tips\">\u8ad6\u7406\u578b\u3092\u4f7f\u3046\u969b\u306f\u3001<strong>is_valid<\/strong>\u3001<strong>has_permission<\/strong>\u3001<strong>can_access<\/strong>\u306e\u3088\u3046\u306b\u3001\u771f\u507d\u3092\u554f\u3046\u610f\u5473\u306e\u5909\u6570\u540d\u3092\u4ed8\u3051\u308b\u3068\u53ef\u8aad\u6027\u304c\u683c\u6bb5\u306b\u5411\u4e0a\u3059\u308b\u3002\u30b3\u30fc\u30c9\u3092\u8aad\u3080\u4eba\u304c\u4e00\u76ee\u3067\u300c\u3053\u306e\u5909\u6570\u306f\u771f\u507d\u5024\u3060\u306a\u300d\u3068\u7406\u89e3\u3067\u304d\u308b\u3002<\/div>\n<h2 class=\"title-border\">bool()\u95a2\u6570\u306b\u3088\u308b\u578b\u5909\u63db<\/h2>\n<p>Python\u3067\u306f<strong>bool()\u95a2\u6570<\/strong>\u3092\u4f7f\u3063\u3066\u3001\u4ed6\u306e\u30c7\u30fc\u30bf\u578b\u3092\u8ad6\u7406\u578b\u306b\u5909\u63db\u3067\u304d\u308b\u3002\u3053\u306e\u5909\u63db\u898f\u5247\u3092\u7406\u89e3\u3057\u3066\u304a\u304f\u3068\u3001\u6761\u4ef6\u5206\u5c90\u3092\u3088\u308a\u52b9\u7387\u7684\u306b\u66f8\u3051\u308b\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n<pre class=\"line-numbers\"><code class=\"language-python\"># \u6570\u5024\u306e\u8ad6\u7406\u5024\u5909\u63db\nprint(bool(0))      # False - 0\u306f\u507d\nprint(bool(1))      # True - 0\u4ee5\u5916\u306e\u6570\u5024\u306f\u771f\nprint(bool(-1))     # True - \u8ca0\u306e\u6570\u3082\u771f\nprint(bool(100))    # True\n\n# \u6587\u5b57\u5217\u306e\u8ad6\u7406\u5024\u5909\u63db\nprint(bool(\"\"))       # False - \u7a7a\u6587\u5b57\u5217\u306f\u507d\nprint(bool(\"Hello\"))  # True - \u7a7a\u3067\u306a\u3044\u6587\u5b57\u5217\u306f\u771f\nprint(bool(\"0\"))      # True - \u6587\u5b57\u5217\u306e\"0\"\u3082\u771f\n\n# \u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u8ad6\u7406\u5024\u5909\u63db\nprint(bool([]))       # False - \u7a7a\u306e\u30ea\u30b9\u30c8\u306f\u507d\nprint(bool([1, 2]))   # True - \u8981\u7d20\u304c\u3042\u308b\u30ea\u30b9\u30c8\u306f\u771f\nprint(bool({}))       # False - \u7a7a\u306e\u8f9e\u66f8\u306f\u507d\nprint(bool({\"key\": \"value\"}))  # True - \u8981\u7d20\u304c\u3042\u308b\u8f9e\u66f8\u306f\u771f\n<\/code><\/pre>\n<div class=\"tips\"><strong>None\u3001False\u30010\u3001\u7a7a\u6587\u5b57\u5217\u3001\u7a7a\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3<\/strong>\u306fPython\u3067\u306f\u507d\u3068\u307f\u306a\u3055\u308c\u3001\u305d\u308c\u4ee5\u5916\u306f\u3059\u3079\u3066\u771f\u3068\u307f\u306a\u3055\u308c\u308b\u3002<\/div>\n<a href=\"https:\/\/www.udemy.com\/course\/python-python\/?couponCode=20260400_NM_PYTHON\" target=\"_blank\"><div class=\"affiliate-box\"><img decoding=\"async\" src=\"\/wp-content\/uploads\/2025\/09\/Python3.11.png\" alt=\"Python\u8b1b\u5ea7\" class=\"affiliate-img\"><div class=\"affiliate-text\"><h3 class=\"affiliate-title\">\u3010Udemy\u3011Python\u5165\u9580\u8b1b\u5ea7(0\u304b\u3089Python\u306e\u57fa\u790e\u3092\u4f53\u7cfb\u7684\u306b\u5b66\u3093\u3067\u3001\u751f\u6210AI\u3067\u30d0\u30a4\u30d6\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0)<\/h3><p class=\"affiliate-desc\">\u53d7\u8b1b\u751f3000\u4eba\u307b\u3069\u306e\u4eba\u6c17\u8b1b\u5ea7\u3002<strong>Python\u306e\u57fa\u790e\u304b\u3089\u751f\u6210AI\u6d3b\u7528<\/strong>\u307e\u3067\u3092<strong>20\u6642\u9593\u307b\u3069<\/strong>\u3067\u4e00\u6c17\u306b\u5b66\u3073\u307e\u3059\u3002\u696d\u52d9\u3067\u6d3b\u304b\u305b\u308bPython\u306e\u57fa\u790e\u77e5\u8b58\u306f\u3057\u3063\u304b\u308a\u3068\u8eab\u306b\u3064\u304d\u307e\u3059\u3002<\/p><\/div><\/div><\/a>\n<h2 class=\"title-border\">AND\u6f14\u7b97\u5b50\u306e\u4f7f\u3044\u65b9\u3068\u5b9f\u8df5\u4f8b<\/h2>\n<p>AND\u6f14\u7b97\u5b50\uff08<strong>and<\/strong>\uff09\u306f\u3001\u8907\u6570\u306e\u6761\u4ef6\u304c<strong>\u3059\u3079\u3066\u771f\u306e\u5834\u5408\u306e\u307f<\/strong>\u771f\u3092\u8fd4\u3059\u8ad6\u7406\u6f14\u7b97\u5b50\u3060\u3002\u65e5\u5e38\u4f1a\u8a71\u3067\u306e\u300c\u301c\u304b\u3064\u301c\u300d\u306b\u76f8\u5f53\u3059\u308b\u3002<\/p>\n<div class=\"sub-item\">\n<h3>\u57fa\u672c\u7684\u306aAND\u6f14\u7b97<\/h3>\n<pre class=\"line-numbers\"><code class=\"language-python\"># \u57fa\u672c\u7684\u306aAND\u6f14\u7b97\u306e\u771f\u7406\u5024\u8868\nprint(True and True)    # True\nprint(True and False)   # False\nprint(False and True)   # False  \nprint(False and False)  # False\n\n# \u5b9f\u969b\u306e\u6761\u4ef6\u5224\u5b9a\u3067\u306e\u4f7f\u7528\u4f8b\nage = 25\nincome = 50000\n\nif age >= 18 and income >= 30000: # \u4e21\u65b9\u3092\u6e80\u305f\u3059\u5834\u5408\u306b\u4e2d\u306e\u51e6\u7406\u304c\u5b9f\u884c\u3055\u308c\u308b\n    print(\"\u30ed\u30fc\u30f3\u5be9\u67fb\u306b\u901a\u308a\u307e\u3057\u305f\")\n    print(f\"\u5e74\u9f62: {age}\u6b73, \u5e74\u53ce: {income}\u4e07\u5186\")\nelse:\n    print(\"\u30ed\u30fc\u30f3\u5be9\u67fb\u306e\u6761\u4ef6\u3092\u6e80\u305f\u3057\u3066\u3044\u307e\u305b\u3093\")\n<\/code><\/pre>\n<\/div>\n<div class=\"sub-item\">\n<h3>\u8907\u6570\u6761\u4ef6\u3067\u306eAND\u6f14\u7b97\u6d3b\u7528<\/h3>\n<pre class=\"line-numbers\"><code class=\"language-python\"># \u8907\u6570\u306e\u6761\u4ef6\u3092AND\u3067\u7d44\u307f\u5408\u308f\u305b\u308b\nusername = \"admin\"\npassword = \"secret123\"\nis_active = True\n\nif username == \"admin\" and password == \"secret123\" and is_active: # \u5168\u3066\u3092\u6e80\u305f\u3059\u5834\u5408\u306b\u5b9f\u884c\u3055\u308c\u308b\n    print(\"\u7ba1\u7406\u8005\u30ed\u30b0\u30a4\u30f3\u6210\u529f\")\nelse:\n    print(\"\u30ed\u30b0\u30a4\u30f3\u306b\u5931\u6557\u3057\u307e\u3057\u305f\")\n\n# \u3088\u308a\u8907\u96d1\u306a\u6761\u4ef6\u306e\u7d44\u307f\u5408\u308f\u305b\nscore = 85\nattendance_rate = 0.9\nhas_submitted_report = True\n\nif score >= 80 and attendance_rate >= 0.8 and has_submitted_report:\n    print(\"\u5408\u683c\u3067\u3059\uff01\u512a\u79c0\u306a\u6210\u7e3e\u3067\u3057\u305f\")\n    print(f\"\u5f97\u70b9: {score}\u70b9, \u51fa\u5e2d\u7387: {attendance_rate * 100}%\")\nelse:\n    print(\"\u6b8b\u5ff5\u306a\u304c\u3089\u4e0d\u5408\u683c\u3067\u3059\")\n<\/code><\/pre>\n<\/div>\n<h2 class=\"title-border\">OR\u6f14\u7b97\u5b50\u306e\u4f7f\u3044\u65b9\u3068\u5b9f\u8df5\u4f8b<\/h2>\n<p>OR\u6f14\u7b97\u5b50\uff08<strong>or<\/strong>\uff09\u306f\u3001\u8907\u6570\u306e\u6761\u4ef6\u306e\u3046\u3061<strong>\u5c11\u306a\u304f\u3068\u30821\u3064\u304c\u771f\u306e\u5834\u5408<\/strong>\u771f\u3092\u8fd4\u3059\u8ad6\u7406\u6f14\u7b97\u5b50\u3060\u3002\u65e5\u5e38\u4f1a\u8a71\u3067\u306e\u300c\u301c\u307e\u305f\u306f\u301c\u300d\u306b\u76f8\u5f53\u3059\u308b\u3002<\/p>\n<div class=\"sub-item\">\n<h3>\u57fa\u672c\u7684\u306aOR\u6f14\u7b97<\/h3>\n<pre class=\"line-numbers\"><code class=\"language-python\"># \u57fa\u672c\u7684\u306aOR\u6f14\u7b97\u306e\u771f\u7406\u5024\u8868\nprint(True or True)     # True\nprint(True or False)    # True\nprint(False or True)    # True\nprint(False or False)   # False\n\n# \u5b9f\u969b\u306e\u6761\u4ef6\u5224\u5b9a\u3067\u306e\u4f7f\u7528\u4f8b\nweather = \"\u96e8\"\ntemperature = 35\n\nif weather == \"\u96e8\" or temperature > 30: # \u3069\u3061\u3089\u304b\u3092\u6e80\u305f\u3059\u5834\u5408\u306b\u5b9f\u884c\u3055\u308c\u308b\n    print(\"\u5916\u51fa\u3092\u63a7\u3048\u308b\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\")\n    print(f\"\u5929\u6c17: {weather}, \u6c17\u6e29: {temperature}\u5ea6\")\nelse:\n    print(\"\u5916\u51fa\u65e5\u548c\u3067\u3059\u306d\")\n<\/code><\/pre>\n<\/div>\n<div class=\"sub-item\">\n<h3>\u67d4\u8edf\u306a\u6761\u4ef6\u5224\u5b9a\u3067\u306eOR\u6f14\u7b97<\/h3>\n<pre class=\"line-numbers\"><code class=\"language-python\"># \u8907\u6570\u306e\u652f\u6255\u3044\u65b9\u6cd5\u3092\u8a31\u53ef\u3059\u308b\u4f8b\npayment_method = \"\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\"\n\nif payment_method == \"\u73fe\u91d1\" or payment_method == \"\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\" or payment_method == \"\u96fb\u5b50\u30de\u30cd\u30fc\":\n    print(f\"{payment_method}\u3067\u306e\u652f\u6255\u3044\u3092\u53d7\u3051\u4ed8\u3051\u307e\u3059\")\nelse:\n    print(\"\u7533\u3057\u8a33\u3042\u308a\u307e\u305b\u3093\u3002\u305d\u306e\u652f\u6255\u3044\u65b9\u6cd5\u306f\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\")\n\n# VIP\u9867\u5ba2\u306e\u5224\u5b9a\u4f8b\npurchase_amount = 50000\nmembership_years = 3\nis_premium_member = False\n\nif purchase_amount >= 100000 or membership_years >= 5 or is_premium_member: # \u3069\u308c\u304b\u3092\u6e80\u305f\u3059\u5834\u5408\u306b\u5b9f\u884c\u3055\u308c\u308b\n    print(\"VIP\u9867\u5ba2\u3068\u3057\u3066\u7279\u5225\u30b5\u30fc\u30d3\u30b9\u3092\u63d0\u4f9b\u3057\u307e\u3059\")\nelse:\n    print(\"\u901a\u5e38\u30b5\u30fc\u30d3\u30b9\u3067\u3054\u6848\u5185\u3057\u307e\u3059\")\n<\/code><\/pre>\n<\/div>\n<a href=\"https:\/\/www.udemy.com\/course\/python-python\/?couponCode=20260400_NM_PYTHON\" target=\"_blank\"><div class=\"affiliate-box\"><img decoding=\"async\" src=\"\/wp-content\/uploads\/2025\/09\/Python3.11.png\" alt=\"Python\u8b1b\u5ea7\" class=\"affiliate-img\"><div class=\"affiliate-text\"><h3 class=\"affiliate-title\">\u3010Udemy\u3011Python\u5165\u9580\u8b1b\u5ea7(0\u304b\u3089Python\u306e\u57fa\u790e\u3092\u4f53\u7cfb\u7684\u306b\u5b66\u3093\u3067\u3001\u751f\u6210AI\u3067\u30d0\u30a4\u30d6\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0)<\/h3><p class=\"affiliate-desc\">\u53d7\u8b1b\u751f3000\u4eba\u307b\u3069\u306e\u4eba\u6c17\u8b1b\u5ea7\u3002<strong>Python\u306e\u57fa\u790e\u304b\u3089\u751f\u6210AI\u6d3b\u7528<\/strong>\u307e\u3067\u3092<strong>20\u6642\u9593\u307b\u3069<\/strong>\u3067\u4e00\u6c17\u306b\u5b66\u3073\u307e\u3059\u3002\u696d\u52d9\u3067\u6d3b\u304b\u305b\u308bPython\u306e\u57fa\u790e\u77e5\u8b58\u306f\u3057\u3063\u304b\u308a\u3068\u8eab\u306b\u3064\u304d\u307e\u3059\u3002<\/p><\/div><\/div><\/a>\n<h2 class=\"title-border\">\u8ad6\u7406\u6f14\u7b97\u5b50\u4f7f\u7528\u6642\u306e\u6ce8\u610f\u70b9\u3068\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/h2>\n<div class=\"sub-item\">\n<h3>\u53ef\u8aad\u6027\u3092\u91cd\u8996\u3057\u305f\u6761\u4ef6\u306e\u66f8\u304d\u65b9<\/h3>\n<p>\u8907\u96d1\u306a\u8ad6\u7406\u6f14\u7b97\u306f\u3001\u9069\u5207\u306a\u5909\u6570\u540d\u3084\u62ec\u5f27\u3092\u4f7f\u3063\u3066\u8aad\u307f\u3084\u3059\u304f\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3060\u3002<\/p>\n<pre class=\"line-numbers\"><code class=\"language-python\"># \u60aa\u3044\u4f8b: \u8907\u96d1\u3067\u8aad\u307f\u306b\u304f\u3044\nif age >= 18 and (income >= 30000 or has_guarantor) and credit_score > 600 and not is_blacklisted:\n    approve_loan()\n\n# \u826f\u3044\u4f8b: \u6761\u4ef6\u3092\u660e\u78ba\u306b\u5206\u5272\nis_adult = age >= 18\nhas_sufficient_income = income >= 30000 or has_guarantor\nhas_good_credit = credit_score > 600\nis_eligible = not is_blacklisted\n\nif is_adult and has_sufficient_income and has_good_credit and is_eligible:\n    approve_loan()\n    print(\"\u30ed\u30fc\u30f3\u304c\u627f\u8a8d\u3055\u308c\u307e\u3057\u305f\")\n<\/code><\/pre>\n<\/div>\n<div class=\"sub-item\">\n<h3>\u6bd4\u8f03\u6f14\u7b97\u5b50\u3068\u306e\u7d44\u307f\u5408\u308f\u305b<\/h3>\n<p>Python\u3067\u306f\u6bd4\u8f03\u6f14\u7b97\u5b50\u3092\u9023\u9396\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u3053\u308c\u3092\u8ad6\u7406\u6f14\u7b97\u5b50\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u3068\u5f37\u529b\u3060\u3002<\/p>\n<pre class=\"line-numbers\"><code class=\"language-python\"># \u7bc4\u56f2\u30c1\u30a7\u30c3\u30af\u306e\u4f8b\nscore = 85\n\n# \u901a\u5e38\u306e\u66f8\u304d\u65b9\nif score >= 80 and score <= 100:\n    print(\"\u512a\u79c0\u306a\u6210\u7e3e\u3067\u3059\")\n\n# Python\u306e\u9023\u9396\u6bd4\u8f03\u3092\u4f7f\u3063\u305f\u66f8\u304d\u65b9\uff08\u3088\u308a\u76f4\u611f\u7684\uff09\nif 80 <= score <= 100:\n    print(\"\u512a\u79c0\u306a\u6210\u7e3e\u3067\u3059\")\n\n# \u8907\u6570\u306e\u6761\u4ef6\u3068\u7d44\u307f\u5408\u308f\u305b\ntemperature = 25\nhumidity = 60\n\nif (20 <= temperature <= 28) and (40 <= humidity <= 70):\n    print(\"\u5feb\u9069\u306a\u74b0\u5883\u3067\u3059\")\nelse:\n    print(\"\u74b0\u5883\u306e\u8abf\u6574\u304c\u5fc5\u8981\u3067\u3059\")\n<\/code><\/pre>\n<\/div>\n<div class=\"summary\">bool\u578b\u306fTrue\/False\u306e2\u5024\u3092\u6301\u3064\u30a4\u30df\u30e5\u30fc\u30bf\u30d6\u30eb\u578b\u3067\u3001int\u30af\u30e9\u30b9\u306e\u30b5\u30d6\u30af\u30e9\u30b9\u3068\u3057\u3066\u5b9f\u88c5\u3055\u308c\u308b\u3002<br \/>\n\u7a7a\u306e\u6587\u5b57\u5217\u30fb\u30ea\u30b9\u30c8\u30fb\u8f9e\u66f8\u30010\u3001None\u306f\u507d\u5024\u3068\u3057\u3066\u6271\u308f\u308c\u3001\u305d\u308c\u4ee5\u5916\u306f\u771f\u5024\u3068\u306a\u308b\u3002and, or\u3092\u7528\u3044\u308c\u3070\u8907\u6570\u306e\u6761\u4ef6\u3092\u3064\u306a\u3052\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Python\u306e\u8ad6\u7406\u578b\uff08bool\uff09, AND\u30fbOR\u6f14\u7b97\u5b50\u306b\u3064\u3044\u3066\u3001\u57fa\u790e\u7684\u306a\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3059\u308b\u3002 Python\u8ad6\u7406\u578b\uff08bool\uff09\u306e\u57fa\u672c Python\u306e\u8ad6\u7406\u578b\uff08boolean\uff09\u306f\u3001\u771f\u507d\u5024\u3092\u8868\u73fe\u3059\u308b\u305f\u3081\u306e\u57fa\u672c\u7684\u306a\u30c7\u30fc\u30bf\u578b\u3060\u3002 Tr [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5046,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_uag_custom_page_level_css":"","_uf_show_specific_survey":0,"_uf_disable_surveys":false,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[9,219],"tags":[210,14,50],"class_list":{"0":"post-316","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-python","8":"category-it-programming","9":"tag-bool","10":"tag-python","11":"tag-50","12":"entry"},"uagb_featured_image_src":{"full":["https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2018\/12\/Python-2.png",812,583,false],"thumbnail":["https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2018\/12\/Python-2-150x150.png",150,150,true],"medium":["https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2018\/12\/Python-2-300x215.png",300,215,true],"medium_large":["https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2018\/12\/Python-2-768x551.png",768,551,true],"large":["https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2018\/12\/Python-2.png",812,583,false],"1536x1536":["https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2018\/12\/Python-2.png",812,583,false],"2048x2048":["https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2018\/12\/Python-2.png",812,583,false],"home-middle":["https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2018\/12\/Python-2-630x350.png",630,350,true],"home-top":["https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2018\/12\/Python-2-750x420.png",750,420,true],"sidebar-thumbnail":["https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2018\/12\/Python-2-100x100.png",100,100,true]},"uagb_author_info":{"display_name":"9nmatsumoto","author_link":"https:\/\/www.nblog09.com\/w\/author\/9nmatsumoto\/"},"uagb_comment_info":1,"uagb_excerpt":"Python\u306e\u8ad6\u7406\u578b\uff08bool\uff09, AND\u30fbOR\u6f14\u7b97\u5b50\u306b\u3064\u3044\u3066\u3001\u57fa\u790e\u7684\u306a\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3059\u308b\u3002 Python\u8ad6\u7406\u578b&hellip;","_links":{"self":[{"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/posts\/316","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/comments?post=316"}],"version-history":[{"count":23,"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/posts\/316\/revisions"}],"predecessor-version":[{"id":5045,"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/posts\/316\/revisions\/5045"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/media\/5046"}],"wp:attachment":[{"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/media?parent=316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/categories?post=316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/tags?post=316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}