{"id":190,"date":"2017-01-11T13:24:52","date_gmt":"2017-01-11T04:24:52","guid":{"rendered":"http:\/\/www.python.ambitious-engineer.com\/?p=190"},"modified":"2018-10-28T19:38:57","modified_gmt":"2018-10-28T10:38:57","slug":"none%e5%9e%8b","status":"publish","type":"post","link":"https:\/\/www.python.ambitious-engineer.com\/archives\/190","title":{"rendered":"None\u578b"},"content":{"rendered":"<h2>\u5024\u304c\u5b58\u5728\u3057\u306a\u3044\u3053\u3068\u3092\u8868\u3059None<\/h2>\n<p>\u5909\u6570\u306b\u5024\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u3001Python\u3067\u306fNone\u3092\u5229\u7528\u3057\u307e\u3059\u3002C\u3084Java\u3001C#\u306enull\u306b\u76f8\u5f53\u3057\u307e\u3059\u3002<\/p>\n<p>\u3042\u308b\u5909\u6570val\u306bNone\u3092\u4ee3\u5165\u3059\u308b\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nval = None\r\n<\/pre>\n<p>\u5909\u6570\u3092\u3068\u308a\u3042\u3048\u305a\u521d\u671f\u5316\u3059\u308b\u969b\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>None\u304b\u3069\u3046\u304b\u3092\u5224\u5b9a\u3059\u308b<\/h2>\n<p>\u5909\u6570\u304cNone\u304b\u3069\u3046\u304b\u3092\u5224\u5b9a\u3059\u308b\u969b\u306fis\u3092\u4f7f\u3044\u307e\u3059\u3002\uff08if\u6587\u306b\u3064\u3044\u3066\u306f\u307e\u3060\u8aac\u660e\u3057\u3066\u3044\u307e\u305b\u3093\u304c\u3001<a href=\"http:\/\/www.python.ambitious-engineer.com\/archives\/218\">\u5225\u9014<\/a>\u8aac\u660e\u3057\u307e\u3059\u3002\u308f\u304b\u3089\u306a\u3044\u65b9\u306f\u4e00\u65e6\u98db\u3070\u3057\u3066\u69cb\u3044\u307e\u305b\u3093\u3002\uff09<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nval = None\r\n\r\nif val is None:\r\n    print('val is None') # \u3053\u306e\u884c\u304c\u51fa\u529b\u3055\u308c\u308b\r\n<\/pre>\n<h2>None\u306e\u8a55\u4fa1\u3068\u7a7a\u6587\u5b57<\/h2>\n<p>\u307e\u305f\u3001None\u81ea\u4f53\u306fif\u6587\u3067False\u3068\u8a55\u4fa1\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nval = None\r\n\r\nif val:\r\n    print('True')\r\nelse:\r\n    print('False') # \u3053\u306e\u884c\u304c\u51fa\u529b\u3055\u308c\u308b\r\n<\/pre>\n<p>\u305f\u3060\u3057\u3001\u507d\u3068\u3057\u3066\u8a55\u4fa1\u3055\u308c\u308b\u3082\u306e\u306f\u4ed6\u306b\u3082\u3042\u308b\u306e\u3067\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u4f8b\u3048\u3070\u7a7a\u6587\u5b57\u304c\u305d\u308c\u306b\u8a72\u5f53\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nval = ''\r\n\r\nif val:\r\n    print('True')\r\nelse:\r\n    print('False') # \u3053\u306e\u884c\u304c\u51fa\u529b\u3055\u308c\u308b\r\n<\/pre>\n<p>\u8a73\u3057\u304f\u306f<a href=\"https:\/\/www.python.ambitious-engineer.com\/archives\/218#i\">\u3053\u3061\u3089<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>None\u306e\u6587\u5b57\u5217\u8868\u73fe<\/h2>\n<p>None\u3092\u4f7f\u7528\u3059\u308b\u969b\u306b\u3082\u3046\uff11\u70b9\u3001\u6ce8\u610f\u304c\u5fc5\u8981\u306a\u306e\u304c\u6587\u5b57\u5217\u8868\u73fe\u3067\u3059\u3002None\u3092print\u95a2\u6570\u306a\u3069\u3067\u51fa\u529b\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nvar = None\r\nprint(var)    # None\u304c\u51fa\u529b\u3055\u308c\u308b\r\n<\/pre>\n<p>None\u3068\u3044\u3046\u6587\u5b57\u5217\u304c\u51fa\u529b\u3055\u308c\u308b\u305f\u3081\u3001\u30ed\u30b0\u306a\u3069\u3067\u7a7a\u6587\u5b57\u3092\u671f\u5f85\u3057\u305f\u5b9f\u88c5\u3092\u3059\u308b\u969b\u306b\u306f\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002\u4ee5\u4e0b\u30ea\u30f3\u30af\u306b\u56de\u907f\u65b9\u6cd5\u306e\u30a4\u30c7\u30a3\u30aa\u30e0\u3092\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u8208\u5473\u304c\u3042\u308b\u65b9\u306f\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n<a href=\"http:\/\/www.python.ambitious-engineer.com\/archives\/1781\">\u6587\u5b57\u5217\u304cNone\u306e\u5834\u5408\u306f\u30d6\u30e9\u30f3\u30af\u306b\u3059\u308b<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5024\u304c\u5b58\u5728\u3057\u306a\u3044\u3053\u3068\u3092\u8868\u3059None \u5909\u6570\u306b\u5024\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u3001Python\u3067\u306fNone\u3092\u5229\u7528\u3057\u307e\u3059\u3002C\u3084Java\u3001C#\u306enull\u306b\u76f8\u5f53\u3057\u307e\u3059\u3002 \u3042\u308b\u5909\u6570val\u306bNone\u3092\u4ee3\u5165\u3059\u308b\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002 \u5909\u6570\u3092\u3068\u308a\u3042...<\/p>\n","protected":false},"author":1,"featured_media":3387,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[48],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts\/190"}],"collection":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/comments?post=190"}],"version-history":[{"count":4,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts\/190\/revisions"}],"predecessor-version":[{"id":3388,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts\/190\/revisions\/3388"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/media\/3387"}],"wp:attachment":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/media?parent=190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/categories?post=190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/tags?post=190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}