小编Act*_*Dev的帖子

使用 kotlin 字符串函数/字符串格式添加空格

这可能会在这里被问过几次......我想在字符串的每四个字符之间添加空格(8888319024981442)。我的字符串长度正好是 16。 String.format没有帮助

避免使用 split 或在内存中创建多个字符串。

有没有可以快速使用的 kotlin 函数/String.format。

string string.format replaceall kotlin

2
推荐指数
1
解决办法
1812
查看次数

标签 统计

kotlin ×1

replaceall ×1

string ×1

string.format ×1