📜  python 按制表符拆分字符串 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:31.561000             🧑  作者: Mango

代码示例1
>>> import re
>>> strs = "foo\tbar\t\tspam"
>>> re.split(r'\t+', strs)
['foo', 'bar', 'spam']