{"image_url":null,"provider_url":"https://hatena.blog","published":"2011-02-03 00:27:06","height":"190","blog_url":"https://aroma-black.hatenadiary.org/","description":"\u52d5\u6a5f \u8a2d\u5b9a\u5024\u306e\u91cd\u8907\u3092\u524a\u308b\u305f\u3081\u306b\u306b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d44\u3093\u3060\u306e\u3060\u3051\u3069\u3001Python\u3060\u3068\u30eb\u30fc\u30d7\u3067\u56de\u3057\u3066\u65b0\u3057\u3044\u914d\u5217\u306b\u7a81\u3063\u8fbc\u3093\u3067\u3068\u304b\u3084\u3089\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3063\u307d\u3044\u306e\u3067\u9762\u5012\u81ed\u3044\u30a8\u30ec\u30ac\u30f3\u30c8\u3058\u3083\u306a\u3044\u3002\u4e00\u5fdcPython\u3067\u5358\u7d14\u306b\u66f8\u304f\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u306b\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u3002 a = [1,3,4,2,3,5] b = [] for v in a: if v not in b: b.append(v) print b # [1, 3, 4, 2, 5] Ruby\u306fArray.uniq\u3092\u4f5c\u3063\u305f \u305d\u3093\u306a\u3053\u3093\u306a\u3067Ruby\u3060\u3068uniq\u3068\u3044\u3046\u91cd\u8907\u3092\u53d6\u308a\u9664\u304f\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u308b\u306e\u3067\u3053\u3061\u3089\u3092\u4f7f\u3063\u3066\u51e6\u7406\u3057\u307e\u3057\u305f\u3002 \u30b3\u30fc\u30c9\u306f [1,3,4,2,3,5].\u2026","title":"Python\u306e\u30ea\u30b9\u30c8\u5185\u5305\u8868\u8a18\u3067Ruby\u306euniq\u30e1\u30bd\u30c3\u30c9\u3068\u540c\u3058\u4e8b\u3092\u3059\u308b","url":"https://aroma-black.hatenadiary.org/entry/20110203/1296746826","author_url":"https://blog.hatena.ne.jp/aroma_black/","width":"100%","type":"rich","provider_name":"Hatena Blog","version":"1.0","author_name":"aroma_black","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Faroma-black.hatenadiary.org%2Fentry%2F20110203%2F1296746826\" title=\"Python\u306e\u30ea\u30b9\u30c8\u5185\u5305\u8868\u8a18\u3067Ruby\u306euniq\u30e1\u30bd\u30c3\u30c9\u3068\u540c\u3058\u4e8b\u3092\u3059\u308b - logging.info(self)\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["pyhton","ruby"],"blog_title":"logging.info(self)"}