{"blog_title":"inamori\u2019s diary","description":"Python\u3067\u306f\u3001\u30ea\u30b9\u30c8\u306e\u3088\u3046\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u4ee3\u5165\u3067\u306f\u53c2\u7167\u306b\u306a\u308b\u3002 a = [ 1, 2 ] b = a b[1] = 3 print a # [1, 3]copy\u3092\u4f7f\u3046\u3068\u6210\u5206\u3092\u30b3\u30d4\u30fc\u3059\u308b\u3002 import copya = [ 1, 2 ] b = copy.copy(a) b[1] = 3 print b # [1, 3] print a # [1, 2]\u305f\u3060\u3057\u3001\u6df1\u3044\u30b3\u30d4\u30fc\uff08\u30c7\u30a3\u30fc\u30d7\u30b3\u30d4\u30fc\uff09\u306f\u3057\u306a\u3044\u3002 import copya = [ [1, 2], [3, 4] ] b = copy.copy(a) b[1][1] = 3 print b # [ [1, 2], [3, 3] ] print\u2026","type":"rich","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20090413%2Fp1\" title=\"\u30b3\u30d4\u30fc - inamori\u2019s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"published":"2009-04-13 00:00:00","provider_url":"https://hatena.blog","blog_url":"https://inamori.hateblo.jp/","height":"190","categories":["Python"],"title":"\u30b3\u30d4\u30fc","version":"1.0","author_url":"https://blog.hatena.ne.jp/inamori/","provider_name":"Hatena Blog","author_name":"inamori","url":"https://inamori.hateblo.jp/entry/20090413/p1"}