字符串格式化输出 ‘’’ %s %06d %.2f %% 输入百分号 ‘’’ a=110 b=0.25 print ‘%04d’ %a print ‘%f’ %b print ‘%.2f’ %b b=b*100 print ‘%0.2f%%’ %b