开发者

Java's equivalence to Python's "Got value: %s" % variable?

开发者 https://www.devze.com 2022-12-27 12:23 出处:网络
Java\'s equivalence to Python\'s \"Got value: %开发者_运维百科s\" % variable?String.format(\"Got value: %s\", variable);

Java's equivalence to Python's "Got value: %开发者_运维百科s" % variable?


String.format("Got value: %s", variable);


System.out.format("%s", aString)

See Format and all its various incarnations.

0

精彩评论

暂无评论...
验证码 换一张
取 消