Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
我实现了datastring.replaceall(“ \ r \ n”,“ \ n”)。split(“ \ n”),它通过删除\ r \ r在拆分列表中导致额外项目的\ r解决了问题
I implemented dataString.replaceAll("\r\n", "\n").split("\n") and it solved the problem by removing the \r that was causing the extra item in the split list
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
我实现了datastring.replaceall(“ \ r \ n”,“ \ n”)。split(“ \ n”),它通过删除\ r \ r在拆分列表中导致额外项目的\ r解决了问题
I implemented dataString.replaceAll("\r\n", "\n").split("\n") and it solved the problem by removing the \r that was causing the extra item in the split list