{"provider_name":"Hatena Blog","url":"https://atsuoishimoto.hatenablog.com/entry/20110513/1305279801","version":"1.0","published":"2011-05-13 18:43:21","image_url":null,"blog_url":"https://atsuoishimoto.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/atsuoishimoto/","height":"190","width":"100%","title":"uniq()\u3042\u308c\u3053\u308c","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fatsuoishimoto.hatenablog.com%2Fentry%2F20110513%2F1305279801\" title=\"uniq()\u3042\u308c\u3053\u308c - atsuoishimoto&#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>","type":"rich","description":"\u3075\u3068\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3092\u62dd\u898b\u3057\u3066\u3001\u982d\u306b\u6d6e\u304b\u3093\u3060\u3053\u3068\u3092\u30e1\u30e2\u3063\u3066\u307f\u308b\u3002id:aroma_black\u3055\u3093\u306e [y for x,y in enumerate(seq) if seq[:x+1].count(y) == 1] \u3084\u3001id:cocoatomo\u3055\u3093\u306e [x for i, x in enumerate(a) if i == a.index(x)] \u3067\u3082\u826f\u3044\u3093\u3060\u3051\u3069\u3001\u3042\u3048\u3066\u5225\u89e3\u3092\u63a2\u3059\u3068\uff1aPython2.7/3\u306a\u3089 import collections list(collections.OrderedDict((x,None) for x in seq).keys()) \u4e00\u756a\u7d20\u76f4\u3067\u901f\u3044\u306e\u306f filter(\u2026","author_name":"atsuoishimoto","provider_url":"https://hatena.blog","categories":["Python"],"blog_title":"atsuoishimoto's diary"}