{"id":501,"date":"2019-01-06T23:59:28","date_gmt":"2019-01-06T14:59:28","guid":{"rendered":"https:\/\/www.nblog09.com\/w\/?p=501"},"modified":"2019-01-16T00:05:08","modified_gmt":"2019-01-15T15:05:08","slug":"python-documentation-anotation","status":"publish","type":"post","link":"https:\/\/www.nblog09.com\/w\/2019\/01\/06\/python-documentation-anotation\/","title":{"rendered":"Python\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u3068\u95a2\u6570\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3"},"content":{"rendered":"<p><a href=\"https:\/\/www.nblog09.com\/w\/category\/python\/basic\/\" target=\"_blank\" rel=\"noopener\">Python\u306e\u57fa\u672c\u30fb\u5165\u9580\u8b1b\u5ea7\u30ea\u30b9\u30c8<\/a><\/p>\n<p>[box02 title=\"\u3053\u306e\u8a18\u4e8b\u306eINDEX\"]<\/p>\n<ul>\n<li><a href=\"#article1\">\u30c9\u30ad\u30e5\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f7f\u3044\u65b9<\/a><\/li>\n<li><a href=\"#article2\">\u95a2\u6570\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f7f\u3044\u65b9<\/a><\/li>\n<\/ul>\n<p>[\/box02]<\/p>\n<div id=\"article1\" class=\"simple-box8\">\n<p>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f7f\u3044\u65b9<\/p>\n<\/div>\n<p>python\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u3068\u306f\u3001\u95a2\u6570\u3084\u30af\u30e9\u30b9\u306a\u3069\u3092\u8aac\u660e\u3059\u308b\u6587\u5b57\u5217\u306e\u3053\u3068\u3092\u8a00\u3044\u307e\u3059\u3002\u95a2\u6570\u3084\u30af\u30e9\u30b9\u306e\u76f4\u5f8c\u306b<\/p>\n<p>\"\"\"<\/p>\n<p>\"\"\"<\/p>\n<p>\u3068\u3059\u308b\u3068\u3001help(\u30af\u30e9\u30b9\u540d)\u3001help(\u95a2\u6570\u540d)\u3068\u3059\u308b\u3053\u3068\u3067\u3001\u8aac\u660e\u6587\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"font-size:14 lang:default decode:true \">def print_msg(msg): \r\n    \"\"\" \r\n    \u6587\u5b57\u5217msg\u3092\u53d7\u3051\u53d6\u308a\u6a19\u6e96\u51fa\u529b\u3059\u308b\u95a2\u6570\u00a0\r\n    :param msg: \u8868\u793a\u3059\u308b\u6587\u5b57\u5217 \r\n    :return: none \"\"\" \r\n    print(msg) \r\n\r\nclass sample_class(): \r\n    \"\"\" \r\n    \u3053\u306e\u30af\u30e9\u30b9\u3067\u306f\u3001 \u30d7\u30ed\u30d1\u30c6\u30a3\u25b3\u25b3: \u95a2\u6570\u3007\u3007:\u3007\u3007\u3092\u3057\u307e\u3059\u3002 \r\n    \"\"\" \r\n\r\nhelp(print_msg)\r\n#\u2191help(print_msg)\u3068\u3059\u308b\u3053\u3068\u3067\u3001\u95a2\u6570print_msg\u306e\u8aac\u660e\u6587\"\"\"~~\"\"\"\u3067\u5b9a\u7fa9\u3057\u305f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u6587\u5b57\u5217\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\r\n\r\nhelp(sample_class)\r\n#\u2191help(sample_class)\u3068\u3059\u308b\u3053\u3068\u3067\u3001\u30af\u30e9\u30b9sample_class\u306e\u8aac\u660e\u6587\"\"\"~~\"\"\"\u3067\u5b9a\u7fa9\u3057\u305f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u6587\u5b57\u5217\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\r\n<\/pre>\n<p>&nbsp;<\/p>\n<div id=\"article2\" class=\"simple-box8\">\n<p>\u95a2\u6570\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f7f\u3044\u65b9<\/p>\n<\/div>\n<p>python\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3068\u306f\u3001\u95a2\u6570\u306b\u5bfe\u3059\u308b\u6ce8\u91c8\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3059\u3002\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u3046\u3068PyCharm\u306a\u3069\u3067\u5229\u7528\u3059\u308b\u969b\u306b\u3001\u6ce8\u91c8\u3092\u8868\u793a\u3057\u3066\u304f\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"font-size:14 lang:default decode:true \">def add_hello(msg: str) -&gt; str: \r\n    #\u2191\u5f15\u6570msg\u306fstr\u3067\u3042\u308b\u3053\u3068\u3092\u652f\u6301\u3057\u3066\u3044\u307e\u3059\u3002\r\n    return \"hello \" + str \r\n\r\nadd_hello(12) \r\n#\u2191\u5f15\u6570\u3068\u3057\u3066str\u3067\u6307\u5b9a\u3057\u3066\u3044\u308b\u304c\u3001int\u3067\u547c\u3073\u51fa\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u6ce8\u91c8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/pre>\n<div>\u5f15\u6570\u306e\u6ce8\u91c8<\/div>\n<div>\u00a0<\/div>\n<div><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-502 aligncenter\" src=\"https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2019\/01\/anotation-300x135.png\" alt=\"\" width=\"422\" height=\"190\" srcset=\"https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2019\/01\/anotation-300x135.png 300w, https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2019\/01\/anotation-768x346.png 768w, https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2019\/01\/anotation-1024x462.png 1024w, https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2019\/01\/anotation.png 1400w\" sizes=\"auto, (max-width: 422px) 100vw, 422px\" \/><\/div>\n<pre class=\"font-size:14 lang:default decode:true \">def add_hello(msg: str) -&gt; str:\r\n#\u2191\u8fd4\u308a\u5024\u304cstr\u3067\u3042\u308b\u3053\u3068\u3092\u652f\u6301\u3057\u3066\u3044\u307e\u3059\u3002\r\n    return \"hello \" + str\r\n\r\nmsg = 12 + add_hello(\"aa\")\r\n#\u2191add_hello()\u306f\u8fd4\u308a\u5024\u304cstr\u3067\u3042\u308b\u3053\u3068\u3092\u6307\u5b9a\u3057\u3066\u3044\u3066\u3001int + str\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u305f\u3081\u6ce8\u91c8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/pre>\n<div>\u8fd4\u308a\u5024\u306e\u6ce8\u91c8<\/div>\n<div><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-503 aligncenter\" src=\"https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2019\/01\/anotation_2-300x127.png\" alt=\"\" width=\"435\" height=\"184\" srcset=\"https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2019\/01\/anotation_2-300x127.png 300w, https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2019\/01\/anotation_2-768x325.png 768w, https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2019\/01\/anotation_2-1024x433.png 1024w, https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2019\/01\/anotation_2.png 1406w\" sizes=\"auto, (max-width: 435px) 100vw, 435px\" \/><\/div>\n<div>\u00a0<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Python\u306e\u57fa\u672c\u30fb\u5165\u9580\u8b1b\u5ea7\u30ea\u30b9\u30c8 [box02 title=\"\u3053\u306e\u8a18\u4e8b\u306eINDEX\"] \u30c9\u30ad\u30e5\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f7f\u3044\u65b9 \u95a2\u6570\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f7f\u3044\u65b9 [\/box02] \u30c9\u30ad\u30e5\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f7f\u3044\u65b9 python\u306e\u30c9\u30ad\u30e5\u30e1\u30f3 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":109,"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":[1],"tags":[14,107,106],"class_list":{"0":"post-501","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-1","8":"tag-python","9":"tag-107","10":"tag-106","11":"entry"},"uagb_featured_image_src":{"full":["https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2018\/12\/Mac.jpg",720,480,false],"thumbnail":["https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2018\/12\/Mac-150x150.jpg",150,150,true],"medium":["https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2018\/12\/Mac-300x200.jpg",300,200,true],"medium_large":["https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2018\/12\/Mac.jpg",720,480,false],"large":["https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2018\/12\/Mac.jpg",720,480,false],"1536x1536":["https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2018\/12\/Mac.jpg",720,480,false],"2048x2048":["https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2018\/12\/Mac.jpg",720,480,false],"home-middle":["https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2018\/12\/Mac.jpg",525,350,false],"home-top":["https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2018\/12\/Mac.jpg",630,420,false],"sidebar-thumbnail":["https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2018\/12\/Mac.jpg",100,67,false]},"uagb_author_info":{"display_name":"9nmatsumoto","author_link":"https:\/\/www.nblog09.com\/w\/author\/9nmatsumoto\/"},"uagb_comment_info":0,"uagb_excerpt":"Python\u306e\u57fa\u672c\u30fb\u5165\u9580\u8b1b\u5ea7\u30ea\u30b9\u30c8 [box02 title=\"\u3053\u306e\u8a18\u4e8b\u306eINDEX\"] \u30c9\u30ad\u30e5\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3&hellip;","_links":{"self":[{"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/posts\/501","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=501"}],"version-history":[{"count":8,"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/posts\/501\/revisions"}],"predecessor-version":[{"id":602,"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/posts\/501\/revisions\/602"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/media\/109"}],"wp:attachment":[{"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/media?parent=501"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/categories?post=501"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/tags?post=501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}