{"type":"rich","provider_name":"Hatena Blog","blog_url":"https://fgshun.hatenablog.com/","width":"100%","categories":["Python"],"title":" \u30ec\u30b7\u30d4\u8ffd\u52a0\u3001\u591a\u6b21\u5143\u914d\u5217\u3092\u30eb\u30fc\u30d7\u3059\u308b","description":"\u300c088:\u591a\u6b21\u5143\u914d\u5217\u3092\u30eb\u30fc\u30d7\u3059\u308b\u300d \u3002\u518d\u5e30\u95a2\u6570\u3067\u66f8\u3044\u305f\u3053\u3068\u306f\u3042\u3063\u305f\u3051\u308c\u3069\u3001\u518d\u5e30\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\uff1f \u3067\u66f8\u3044\u305f\u306e\u306f\u521d\u3081\u3066\u3002 def traverse_unsafe(iterable): try: # \u30a4\u30c6\u30ec\u30fc\u30c8\u53ef\u80fd\u304b\u3069\u3046\u304b\u78ba\u8a8d i = iter(iterable) except TypeError, e: # \u30a4\u30c6\u30ec\u30fc\u30c8\u4e0d\u53ef\u3001\u30c7\u30fc\u30bf\u306a\u306e\u3067\u305d\u306e\u307e\u307e\u8fd4\u3059 value = iterable yield value else: # \u30a4\u30c6\u30ec\u30fc\u30c8\u53ef\u3001\u4e2d\u8eab\u3092\u53d6\u308a\u51fa\u3057\u3066\u8fd4\u3059 for i2 in i: for value in traverse_unsafe(i2): yield value \u5165\u529b\u306b\u3088\u3063\u3066\u5909\u306a\u7d50\u679c\u304c\u51fa\u308b\u2026","image_url":null,"published":"2009-03-10 11:52:12","blog_title":"\u9280\u6708\u306e\u7b26\u53f7","author_url":"https://blog.hatena.ne.jp/fgshun/","url":"https://fgshun.hatenablog.com/entry/20090310/1236653532","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffgshun.hatenablog.com%2Fentry%2F20090310%2F1236653532\" title=\" \u30ec\u30b7\u30d4\u8ffd\u52a0\u3001\u591a\u6b21\u5143\u914d\u5217\u3092\u30eb\u30fc\u30d7\u3059\u308b - \u9280\u6708\u306e\u7b26\u53f7\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","height":"190","author_name":"fgshun"}