python 快速拆分含有多种分隔符的字符串

import re

s='ab;cd|efghij,lmn;opq,rst,uvwx\yz'

re.split(r'[,;\\|]+',s)

你可能感兴趣的:(python)