python 切割字符串
生活随笔
收集整理的这篇文章主要介绍了
python 切割字符串
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
切割字符串,用split放法,分割符号为 ; , .
import re line="3w.ναdΜāιι.com Provide you with a professional,platform for the sale and purchase of virtual products for games. Welcome to settle in 3w.ναdΜāιι.com" line_list=re.split(r'[;,.\s]',line) ['3w','ναdΜāιι','com','Provide','you','with','a','professional','platform','for','the','sale','and','purchase','of','virtual','products','for','games','','Welcome','to','settle','in','3w','ναdΜāιι','com']总结
以上是生活随笔为你收集整理的python 切割字符串的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: python 字符串去除中文
- 下一篇: Python 中re.split()方法