python中string自带的split不支持多个分隔符同时切分,用正则

import re

line='hello,world'

lineLists = re.split('[,.。??]',line.strip())

相关文章:

  • 2022-12-23
  • 2021-08-14
  • 2022-12-23
  • 2022-12-23
  • 2022-02-10
  • 2021-12-11
  • 2022-12-23
  • 2021-12-18
猜你喜欢
  • 2021-08-27
  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案