{"blog_title":"yohhoy\u306e\u65e5\u8a18","description":"Python\u306e\u95a2\u6570\u5b9a\u7fa9\u306b\u304a\u3044\u3066\u3001\u30ad\u30fc\u30ef\u30fc\u30c9\u5f15\u6570\u5f62\u5f0f\u3067\u306e\u307f\u5b9f\u5f15\u6570\u3092\u6e21\u305b\u308b(keyword-only arguments)\u3088\u3046\u5f37\u5236\u3059\u308b\u65b9\u6cd5\u3002 # Python 3.x def f(a, b, *, x=None, y=None): print(\"a={} b={} x={} y={}\".format(a, b, x, y)) f(1, 2) # OK: a=1 b=2 x=None y=None f(1, 2, x=3) # OK: a=1 b=2 x=3 y=None f(1, 2, y=4) # OK: a=1 b=2 x=None y=4 f(1, 2, 3, 4) # NG # TypeE\u2026","author_url":"https://blog.hatena.ne.jp/yohhoy/","published":"2015-03-15 00:00:00","width":"100%","provider_url":"https://hatena.blog","title":"\u30ad\u30fc\u30ef\u30fc\u30c9\u5f15\u6570\u306e\u5f37\u5236","blog_url":"https://yohhoy.hatenadiary.jp/","type":"rich","version":"1.0","height":"190","url":"https://yohhoy.hatenadiary.jp/entry/20150315/p1","categories":["Python"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20150315%2Fp1\" title=\"\u30ad\u30fc\u30ef\u30fc\u30c9\u5f15\u6570\u306e\u5f37\u5236 - yohhoy\u306e\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>","author_name":"yohhoy","provider_name":"Hatena Blog","image_url":null}