{"url":"https://y0m0r.hateblo.jp/entry/20111107/1320643365","blog_url":"https://y0m0r.hateblo.jp/","image_url":null,"author_url":"https://blog.hatena.ne.jp/yuheiomori0718/","published":"2011-11-07 14:22:45","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","categories":["python","ruby"],"blog_title":"\u30e1\u30e2\u7f6e\u304d\u5834","version":"1.0","width":"100%","author_name":"yuheiomori0718","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy0m0r.hateblo.jp%2Fentry%2F20111107%2F1320643365\" title=\"ruby\u3067\u3084\u3063\u3066\u305f\u30a2\u30ec\u3001python\u3067\u3069\u3046\u3084\u308b? \u301c \u30ea\u30b9\u30c8\u306e\u8907\u88fd - \u30e1\u30e2\u7f6e\u304d\u5834\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"ruby\u3067\u3084\u3063\u3066\u305f\u30a2\u30ec\u3001python\u3067\u3069\u3046\u3084\u308b? \u301c \u30ea\u30b9\u30c8\u306e\u8907\u88fd","description":"ruby\u3067 ary = [1,2,3] # => [1, 2, 3] ary.object_id # => 2168514860 # \u4ee3\u5165\u3057\u3066\u3082 ary2 = ary # => [1, 2, 3] # \u53c2\u7167\u5148\u306f\u540c\u3058 ary2.object_id # => 2168514860 # dup\u3060\u3068 ary3 = ary.dup # => [1, 2, 3] # \u65b0\u3057\u3044\u30ea\u30b9\u30c8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u306a\u308b ary3.object_id # => 2168523280 # Array\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf ary4 = Array.new(ary) # => [1, 2, 3] # \u65b0\u3057\u3044\u30ea\u30b9\u30c8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u306a\u308b ary\u2026","type":"rich","height":"190"}