在Python中的空白处分割字串
发布于 2021-02-02 23:12:18
我正在寻找相当于的Python
String str = "many fancy word \nhello \thi";
String whiteSpaceRegex = "\\s";
String[] words = str.split(whiteSpaceRegex);
["many", "fancy", "word", "hello", "hi"]
关注者
0
被浏览
58
1 个回答