本文共 111 字,大约阅读时间需要 1 分钟。
如果要实现以“|”作为分割符,那么应该输入“\\|”,而不是“|”。
所以应当是: str.split("\\|");
转载于:https://www.cnblogs.com/interdrp/p/6830802.html