如下: String text="123.45"; String [] temp = null; temp = text.split("\\."); 如果使用"."、"|"、"^"等字符做分隔符时,要写成s3.split("\\^")的格式, 否则不能拆分。