{"published":"2020-11-09 00:29:32","height":"190","author_url":"https://blog.hatena.ne.jp/anderiens/","categories":["Tech","AtCoder"],"provider_url":"https://hatena.blog","width":"100%","url":"https://blog.anderiens.com/entry/python-list-reference","provider_name":"Hatena Blog","blog_title":"AnDeriens\u306e\u30d6\u30ed\u30b0","title":"Python\u306e\u4e8c\u6b21\u5143\u30ea\u30b9\u30c8\u3092\u4f5c\u308b\u969b\u306b\u6c17\u3092\u3064\u3051\u305f\u3044\u3053\u3068","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/155445913/1573896025164977","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.anderiens.com%2Fentry%2Fpython-list-reference\" title=\"Python\u306e\u4e8c\u6b21\u5143\u30ea\u30b9\u30c8\u3092\u4f5c\u308b\u969b\u306b\u6c17\u3092\u3064\u3051\u305f\u3044\u3053\u3068 - AnDeriens\u306e\u30d6\u30ed\u30b0\" 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":"Python\u3067\u30ea\u30b9\u30c8\u3092\u3064\u304f\u308b\u3068\u304d\u306f\u4e57\u7b97\u3092\u3064\u304b\u3063\u3066\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002 x = ['.'] * 3 print(x) x[1] = '*' print(x) code \u3057\u304b\u3057\u3001\u4e8c\u6b21\u5143\u306b\u3059\u308b\u3068\u3001\u3061\u3087\u3063\u3068\u304a\u304b\u3057\u306a\u3053\u3068\u306b\u306a\u308b\u3002 (1,1)\u3060\u3051\u5909\u3048\u305f\u3044\u306e\u306b\u3001(0,1), (2,1)\u3082\u5909\u308f\u3063\u3066\u3057\u307e\u3046\u3002 def present(l): for i in range(len(l)): print(l[i]) print('') x = [['.'] * 3] * 3 present(x) x[1][1] = 'B' present(x) output ['.', '.', '.'] ['.', '.', '.'\u2026","author_name":"anderiens","version":"1.0","blog_url":"https://blog.anderiens.com/"}