>>> import re
>>> string = '123456789abcdefg'
>>> re.findall(r'.{3}', string)
['123', '456', '789', 'abc', 'def']
>>> 

  

相关文章:

  • 2022-12-23
  • 2018-03-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2022-12-23
猜你喜欢
  • 2021-10-22
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2021-10-13
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案