シュッと区切りたいときがあったのでメモ
s = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
n = 3
[s[i:i+n] for i in range(0, len(s), n)]
Go to list of users who liked
More than 1 year has passed since last update.
シュッと区切りたいときがあったのでメモ
s = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
n = 3
[s[i:i+n] for i in range(0, len(s), n)]
Register as a new user and use Qiita more conveniently
Go to list of users who liked