摘要: >>> import re >>> string = '123456789abcdefg' >>> re.findall(r'.{3}', string) ['123', '456', '789', 'abc', 'def'] >>> 阅读全文
posted @ 2017-08-07 10:31 悟空的爸爸 阅读(10399) 评论(0) 推荐(2) 编辑