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']
posted @ 2022-08-19 22:52  luoganttcc  阅读(6)  评论(0)    收藏  举报