2019-01-22
阅读量:
1908
将python字符串拆分为分隔符但是特定的分隔符
有没有办法分割python字符串而不使用for循环,基本上将中间的字符串拆分为最接近的分隔符。
比如:
The cat jumped over the moon very quickly.
分隔符将是空格,结果字符串将是:
The cat jumped over
the moon very quickly.






推荐帖子
0条评论
0条评论
0条评论