c# PadLeft,PadRight用法 补位 string str = "10"; str.PadLeft(5,'0') 输出:00010 str.PadRight(5, '0') 输出:10000