这可能会在这里被问过几次......我想在字符串的每四个字符之间添加空格(8888319024981442)。我的字符串长度正好是 16。 String.format没有帮助
String.format
避免使用 split 或在内存中创建多个字符串。
有没有可以快速使用的 kotlin 函数/String.format。
string string.format replaceall kotlin
kotlin ×1
replaceall ×1
string ×1
string.format ×1