{"height":"190","author_name":"imaizumimr","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/imaizumimr/","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fimaizumimr.hatenablog.com%2Fentry%2F2020%2F05%2F14%2F160455\" title=\"Python\u3067\u30ea\u30b9\u30c8\u3092\u30b3\u30d4\u30fc\u3059\u308b - Eggshell\" 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,"blog_url":"https://imaizumimr.hatenablog.com/","width":"100%","description":"=\u306f\u53c2\u7167\u6e21\u3057\u306b\u306a\u308b\u305f\u3081\u3001\u5225\u3005\u306e\u30ea\u30b9\u30c8\u3068\u3057\u3066\u5909\u66f4\u3057\u305f\u3044\u3068\u304d\u306b\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u3002 A = [1, 2, 3] B = A A[0] = 100 print(A, B) # [100, 2, 3] [100, 2, 3] \u3053\u3046\u3044\u3046\u3068\u304d\u306f\u6d45\u3044\u30b3\u30d4\u30fc\u304b\u6df1\u3044\u30b3\u30d4\u30fc\u3092\u4f7f\u3063\u3066\u5225\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3002 \u6d45\u3044\u30b3\u30d4\u30fc 1\u6b21\u5143\u30ea\u30b9\u30c8\u306e\u5834\u5408\u306fslice\u3092\u4f7f\u3046\u3068\u77ed\u304f\u66f8\u3051\u308b\u3002 A = [1, 2, 3] B = A[:] A[0] = 100 print(A, B) # [100, 2, 3] [1, 2, 3] copy\u3082\u4f7f\u3048\u308b\u3002 import copy A = [1, 2, 3] B = copy.copy(A) A\u2026","categories":["Python","\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"version":"1.0","url":"https://imaizumimr.hatenablog.com/entry/2020/05/14/160455","type":"rich","title":"Python\u3067\u30ea\u30b9\u30c8\u3092\u30b3\u30d4\u30fc\u3059\u308b","blog_title":"Eggshell","published":"2020-05-14 16:04:55"}