阅读背景:

在Scala中格式化字符串的最佳方法是什么?

来源:互联网 

I was wondering what the best way to format a string would be in Scala. I'm reimplementing the toString method for a class, and it's a rather long and complex string. I thought about using String.format but it seems to have problems with Scala. Is there a native Scala function for doing this?I was wondering what the best way to format a s




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: