{"type":"rich","categories":["Python"],"provider_name":"Hatena Blog","height":"190","version":"1.0","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20201118%2Fp1\" title=\"\u95a2\u6570\uff0f\u30e9\u30e0\u30c0\u5f0f\u3078\u306e\u5024\u675f\u7e1b - 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>","blog_url":"https://yohhoy.hatenadiary.jp/","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9ePython\u306b\u304a\u3044\u3066\u3001\u95a2\u6570\u3084\u30e9\u30e0\u30c0\u5f0f\u306b\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u306e\u300c\u5024\u300d\u3092\u675f\u7e1b\u3059\u308b\u65b9\u6cd5\u3002\u4e0b\u8a18\u30b3\u30fc\u30c9\u3067\u306f \u201c\u5f15\u6570x\u3092\u5b9a\u7fa9\u6642\u306e\u5024n\u3067\u51aa\u4e57\u201d \u3059\u308b\u95a2\u6570\u3092\u500b\u5225\u751f\u6210\u3059\u308b\u3064\u3082\u308a\u304c\u3001\u5b9f\u969b\u306b\u306f \u201c\u5f15\u6570x\u3092\u5909\u6570n\u306e\u5024\u3067\u51aa\u4e57\u201d \u3059\u308b\u540c\u4e00\u306e\u95a2\u6570\u304c\u751f\u6210\u3055\u308c\u308b\u3002for\u30eb\u30fc\u30d7\u7d42\u4e86\u5f8c\u306e\u5909\u6570n\u306f\u50243\u3068\u306a\u3063\u3066\u304a\u308a\u3001\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u671f\u5f85\u306b\u53cd\u3059\u308b\u5b9f\u884c\u7d50\u679c\u3068\u306a\u308b\u3002 # \u95a2\u6570 ops = [] for n in range(4): def fn(x): return x ** n ops.append(fn) print([f(2) for f in ops]) # [8, 8, 8, 8] # \u30e9\u30e0\u30c0\u5f0f ops = [] for n\u2026","url":"https://yohhoy.hatenadiary.jp/entry/20201118/p1","published":"2020-11-18 00:00:00","width":"100%","author_url":"https://blog.hatena.ne.jp/yohhoy/","blog_title":"yohhoy\u306e\u65e5\u8a18","author_name":"yohhoy","title":"\u95a2\u6570\uff0f\u30e9\u30e0\u30c0\u5f0f\u3078\u306e\u5024\u675f\u7e1b","provider_url":"https://hatena.blog"}