perl文本輸出對齊

通常輸出:html print "$a\t$b\n";post   向右對齊:spa   printf "%20s","1234567890\n"; printf "%20s"x@lines,@lines;htm   向左對齊:blog printf "%-20s","1234567890\n"; printf "%-20s"x@lines,@lines;字符串 固然能夠用獲取當前長度再填補空格的
相關文章
相關標籤/搜索