📜  python 将字符串转换为块 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:13.406000             🧑  作者: Mango

代码示例1
s = '1234567890'
o = []
while s:
    o.append(s[:2])
    s = s[2:]