java中整数前如何进行'0'填充 import java.text.DecimalFormat; DecimalFormat df=new DecimalFormat("000"); print(df.format(1)+".jpg") 结果是001.jpg