java 一個數字的位數不夠怎么在前面加0 import java.text.DecimalFormat; //(1)、如果數字1是字符串,如下處理: String str1="1"; DecimalFormat df=ne ...