我正在寻找Python的等价物
String str = "many fancy word \nhello \thi"; String whiteSpaceRegex = "\\s"; String[] words = str.split(whiteSpaceRegex); ["many", "fancy", "word", "hello", "hi"]
python regex string whitespace split
python ×1
regex ×1
split ×1
string ×1
whitespace ×1