{"width":"100%","author_url":"https://blog.hatena.ne.jp/Nobuhisa/","categories":["Python"],"provider_url":"https://hatena.blog","height":"190","published":"2007-11-22 20:28:56","version":"1.0","image_url":null,"blog_url":"https://nobuhisa.hatenablog.jp/","blog_title":"Nobuhisa's diary","url":"https://nobuhisa.hatenablog.jp/entry/20071122/1195730936","title":"Accumulator Generator","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnobuhisa.hatenablog.jp%2Fentry%2F20071122%2F1195730936\" title=\"Accumulator Generator - Nobuhisa&#39;s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","author_name":"Nobuhisa","description":"Python\u306e\u30af\u30ed\u30fc\u30b8\u30e3\u306fD\u8a00\u8a9e\u5bc4\u308a\u306a\u3093\u3067\u3057\u3087\u3046\u304b\u3002 \u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306f\u666e\u901a\u306b\u52d5\u304f >>> b = (lambda x: lambda y: x+y)( 90 ) >>> b( 10 ) 100 \u3067\u3082\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7d2f\u7a4d\u3067\u304d\u306a\u3044\u3002 >>> def foo1( x ) : ... def foo2( y ) : ... x += y ... return x ... return foo2 ... >>> f = foo1( 95 ) >>> f( 1 ) Traceback (most recent call last): File , line 0, in <string>##36 File , l\u2026"}