给定一个Python字符串,例如:
"good \nand bad and\n\t not great and awesome"
我想把它分成一个数组 and s、 同时也移除了杂散的 \n 还有 \t s:
and
\n
\t
["good", "bad", "not great", "awesome"]
如何使用 re.split() ?
re.split()