{"blog_url":"https://inamori.hateblo.jp/","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20090330%2Fp1\" title=\"\u6570\u5024\u5fae\u5206\uff084\uff09 - inamori\u2019s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","provider_name":"Hatena Blog","published":"2009-03-30 00:00:00","version":"1.0","type":"rich","description":"Python\u306b\u306fpartial\u3068\u3044\u3046\u95a2\u6570\u304c\u3042\u308b\u3002 from functools import partialdef f(x, y): return x - yg = partial(f, 3) print g(2) # 1\u300c\u30de\u30cf\u30ea\u30af\u30de\u30cf\u30ea\u30bf\u300d\u3063\u3066\u546a\u6587\u3092\u304b\u3051\u308b\u3068\u3001f(x, y)\u304cg(x) = f(3, x)\u3068\u3044\u3046\u95a2\u6570\u306b\u306a\u308b\u3002\u30ab\u30ea\u30fc\u5316\u3063\u3066\u3044\u3046\u3084\u3064\u3067\u3059\u306d\u3002\u3053\u3046\u3059\u308b\u3068\u3001 from functools import partialdef f(x, y): return x - yh = partial(f, y = 3) print h(2) # -1\u56fa\u5b9a\u3059\u308b\u5909\u6570\u3092\u6307\u5b9a\u3067\u304d\u3066\u3001h(x) = f(x, 3\u2026","author_url":"https://blog.hatena.ne.jp/inamori/","url":"https://inamori.hateblo.jp/entry/20090330/p1","blog_title":"inamori\u2019s diary","categories":["\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","Python"],"author_name":"inamori","title":"\u6570\u5024\u5fae\u5206\uff084\uff09","provider_url":"https://hatena.blog","width":"100%"}