“\\s” 表示按照空格,换行,回车等进行分隔; “\\s+”中的+表示一个或多个的意思。 下面举例说明: 测试句子"this is a test of sentence" ,中间共有4个空格 “\\s+” 分隔 “\\s” 分隔