Java与Python的“Got value:%s”%变量的等价性?

问题描述:

Java与Python的“有价值:%s”%变量的等价性?Java与Python的“Got value:%s”%变量的等价性?

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

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

Format和所有的各种各样的化身。

+1

您的网址有问题:http://file///opt/java/javase/jdk1.6/docs/api/java/text/Format.html – Viet 2010-04-15 05:29:01

+0

糟糕! http://java.sun.com/javase/6/docs/api/java/text/Format.html – 2010-04-15 05:34:41