æç´ã«ããã°ãã¡ããã§ãããã ãã©ãããã©ã¼ãã³ã¹ãæ°ã«ãªã£ããããã£ãããæ¸ãããã¨ãæãããã§ãã >>> a = range(15) >>> a [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] >>> [a[i:i+3] for i in range(0,15,3)] [[0, 1, 2], [3, 4, 5], [6, 7, 8], [9, 10, 11], [12, 13, 14]] range(0, 15, 3) ã [0, 3, 6, 9, 12] ã«å±éããã¦ãã¹ã©ã¤ã¹ãã¦ããæãã zip(*[iter(s)]*n) 㧠n åãã¤åå² æ¢ãã¦ããã¨ãããªã®ãã§ã¦ããã 2. çµã¿è¾¼ã¿é¢æ° â Python 2.7ja1 documentation iterable ã®ãå·¦ããå³ã¸ã®è©ä¾¡é åºãä¿è¨¼ããã¾ãããã®ãã z
{{#tags}}- {{label}}
{{/tags}}