{"id":1299,"date":"2018-10-15T16:15:10","date_gmt":"2018-10-15T07:15:10","guid":{"rendered":"https:\/\/python-introduction.com\/?p=1299"},"modified":"2018-10-15T16:15:23","modified_gmt":"2018-10-15T07:15:23","slug":"%e3%80%90python%e5%85%a5%e9%96%80%e3%80%91%e3%82%ad%e3%83%bc%e3%83%af%e3%83%bc%e3%83%89%e5%bc%95%e6%95%b0%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9","status":"publish","type":"post","link":"https:\/\/python-introduction.com\/?p=1299","title":{"rendered":"\u3010Python\u5165\u9580\u3011\u30ad\u30fc\u30ef\u30fc\u30c9\u5f15\u6570\u306e\u4f7f\u3044\u65b9"},"content":{"rendered":"<p>\u30ad\u30fc\u30ef\u30fc\u30c9\u5f15\u6570\u3068\u306f\u3001\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u306b<br \/>\n\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u6a5f\u80fd\u306e\u3053\u3068\u3092\u3044\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306fPython\u3067\u4f7f\u3046\u3053\u3068\u306e\u3042\u308b\u3001<br \/>\n\u30ad\u30fc\u30ef\u30fc\u30c9\u5f15\u6570\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2>\u3010Python\u3011\u30ad\u30fc\u30ef\u30fc\u30c9\u5f15\u6570\u306e\u4f7f\u3044\u65b9<\/h2>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/10\/pasokonikarionnna1014.jpg\" alt=\"python \u30ad\u30fc\u30ef\u30fc\u30c9\u5f15\u6570\" width=\"620\" height=\"341\" class=\"alignnone size-full wp-image-1301\" srcset=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/10\/pasokonikarionnna1014.jpg 620w, https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/10\/pasokonikarionnna1014-300x165.jpg 300w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><\/p>\n<p>\u307e\u305a\u4f8b\u984c1\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">#\u4f8b\u984c1\r\n\r\ndef ninzu(friends='10\u4eba', sinyu='0\u4eba' ):\r\n    print(friends, sinyu)\r\n    \r\nninzu(friends='3\u4eba', sinyu='1\u4eba' )<\/pre>\n<p>\u4f8b\u984c1\u3092\u5b9f\u884c\u3059\u308b\u3068<\/p>\n<div class=\"boxstyle01\">3\u4eba 1\u4eba\n<\/div>\n<p>\u3068\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u984c1\u306e\u610f\u5473\u304c\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u3068\u3044\u3046\u65b9\u306f<br \/>\n\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u308b\u306e\u3067<br \/>\n\u305d\u3061\u3089\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<br \/>\n\u21d2<a href=\"https:\/\/python-introduction.com\/?p=1291#Python-3\" target=\"blank\">\u3010Python\u5165\u9580\u3011\u95a2\u6570\u5b9a\u7fa9\u3068\u5f15\u6570<\/a><\/p>\n<p>\u3068\u3053\u308d\u3067\u3001\u4f8b\u984c1\u306e<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">def ninzu(friends='10\u4eba', sinyu='0\u4eba' ):<\/pre>\n<p>\u306e\u3068\u3053\u308d\u3067\u3001<br \/>\nfriends=&#8217;10\u4eba&#8217;, sinyu=&#8217;0\u4eba&#8217; \u4ee5\u5916\u306b<br \/>\n\u59bb\u3084\u65e6\u90a3\u306e\u6570\u3001\u96e2\u5a5a\u8005\u306e\u6570\u306a\u3069\u3001\u3044\u308d\u3093\u306a\u8981\u7d20\u3092\u5897\u3084\u3057\u305f\u3044\u5834\u5408\u3060\u3063\u3066\u3042\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u305d\u3093\u306a\u3068\u304d\u306b\u4f7f\u3048\u308b\u30ad\u30fc\u30ef\u30fc\u30c9\u5f15\u6570\u3068\u3057\u3066**kwargs\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3055\u3063\u305d\u304f\u4f8b\u984c2\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">#\u4f8b\u984c2\r\n\r\ndef ninzu(**kwargs):\r\n    print(kwargs)\r\n    \r\nninzu(friends='3\u4eba', sinyu='1\u4eba' )<\/pre>\n<p>\u4f8b\u984c2\u3067\u306f\u6700\u521d\u306e2\u884c\u306b<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">def ninzu(**kwargs):\r\n    print(kwargs)<\/pre>\n<p>\u3068\u3057\u3066kwargs\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u884c\u3059\u308b\u3068<\/p>\n<div class=\"boxstyle01\">{&#8216;friends&#8217;: &#8216;3\u4eba&#8217;, &#8216;sinyu&#8217;: &#8216;1\u4eba&#8217;}<\/div>\n<p>\u3068\u8f9e\u66f8\u306e\u5f62\u3068\u3057\u3066\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067**kwargs\u306f\u305f\u304f\u3055\u3093\u3042\u308b\u30ad\u30fc\u30ef\u30fc\u30c9\u5f15\u6570\u3092<br \/>\n\u8f9e\u66f8\u3068\u3057\u3066\u53d7\u3051\u53d6\u308b\u5834\u5408\u306b\u5229\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u984c3\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">#\u4f8b\u984c3\r\n\r\ndef ninzu(**kwargs):\r\n    for a, b in kwargs.items():\r\n        print(a, b)\r\n    \r\nninzu(friends='3\u4eba', sinyu='1\u4eba' )<\/pre>\n<p>\u5b9f\u884c\u3059\u308b\u3068<\/p>\n<div class=\"boxstyle01\">friends 3\u4eba<br \/>\nsinyu 1\u4eba<\/div>\n<p>\u3068\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u4f8b\u984c4\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">#\u4f8b\u984c4\r\n\r\ndef ninzu(**kwargs):\r\n    for a, b in kwargs.items():\r\n        print(a, b)\r\n        \r\nc = {'\u5f7c\u5973' : '5\u4eba', '\u5f7c\u6c0f' : '15\u4eba', '\u53cb\u9054' : '100\u4eba'}\r\nninzu(**c)<\/pre>\n<p>\u4f8b\u984c4\u3067\u306f<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">c = {'\u5f7c\u5973' : '5\u4eba', '\u5f7c\u6c0f' : '15\u4eba', '\u53cb\u9054' : '100\u4eba'}<\/pre>\n<p>\u304c\u3042\u308a\u307e\u3059\u306d\u3002<\/p>\n<p>{}\u3067\u304f\u304f\u308b\u3068Python\u3067\u306f\u8f9e\u66f8\u3068\u3057\u3066\u6271\u308f\u308c\u307e\u3059\u3002<\/p>\n<p>\u5148\u307b\u3069\u3082\u3044\u3044\u307e\u3057\u305f\u304c<br \/>\n**kwargs\u306f\u305f\u304f\u3055\u3093\u3042\u308b\u30ad\u30fc\u30ef\u30fc\u30c9\u5f15\u6570\u3092<br \/>\n\u8f9e\u66f8\u3068\u3057\u3066\u53d7\u3051\u53d6\u308b\u5834\u5408\u306b\u5229\u7528\u3067\u304d\u308b\u308f\u3051\u3067\u3059\u306d\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">c = {'\u5f7c\u5973' : '5\u4eba', '\u5f7c\u6c0f' : '15\u4eba', '\u53cb\u9054' : '100\u4eba'}<\/pre>\n<p>\u3068\u3044\u3063\u305f\u3001\u8907\u6570\u3042\u308b\u3068\u304d\u306b\u3001**kwargs\u306f\u6709\u52b9\u3067\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">ninzu(**c)<\/pre>\n<p>\u3068**\uff08\u30a2\u30b9\u30bf\u30ea\u30b9\u30af2\u3064\uff09\u306b\u3088\u3063\u3066<br \/>\n\u8f9e\u66f8c\u304c\u5c55\u958b\u3055\u308c\u3066<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">def ninzu(**kwargs):<\/pre>\n<p>\u306b\u6e21\u3055\u308c\u8f9e\u66f8\u5316\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u884c\u3059\u308b\u3068<\/p>\n<div class=\"boxstyle01\">\u5f7c\u5973 5\u4eba<br \/>\n\u5f7c\u6c0f 15\u4eba<br \/>\n\u53cb\u9054 100\u4eba<\/div>\n<p>\u3068\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0a\u3067\u30ad\u30fc\u30ef\u30fc\u30c9\u5f15\u6570\u306b\u3064\u3044\u3066\u306e\u89e3\u8aac\u3092\u7d42\u308f\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u30ad\u30fc\u30ef\u30fc\u30c9\u5f15\u6570\u3068\u306f\u3001\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u306b \u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u6a5f\u80fd\u306e\u3053\u3068\u3092\u3044\u3044\u307e\u3059\u3002 \u3053\u306e\u8a18\u4e8b\u3067\u306fPython\u3067\u4f7f\u3046\u3053\u3068\u306e\u3042\u308b\u3001 \u30ad\u30fc\u30ef\u30fc\u30c9\u5f15\u6570\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002 \u3010Python\u3011\u30ad\u30fc\u30ef\u30fc\u30c9\u5f15 [&hellip;]","protected":false},"author":1,"featured_media":1300,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16,39],"tags":[3,135],"_links":{"self":[{"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/posts\/1299"}],"collection":[{"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1299"}],"version-history":[{"count":3,"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/posts\/1299\/revisions"}],"predecessor-version":[{"id":1304,"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/posts\/1299\/revisions\/1304"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/media\/1300"}],"wp:attachment":[{"href":"https:\/\/python-introduction.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1299"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1299"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}