\\s+

split(“\\s+”) 按空格,制表符,等进行拆分
(也就是说它是按空白部分进行拆分,不管这个空白使用设么操作留下
的,提如空格键 tab键)
split(” +”) 按空格进行拆分(也就是说只有按空格键流出来的空白才会是拆分的一句)

Leave a Reply

Your email address will not be published. Required fields are marked *