Java小bug时间:2023-03-08 20:16:381.使用split函数,将字符串按"."分开,写法如下: String str = "a.b.c"; String[] items = str.split("\\.");