大家好,我是Eric,這次教大家Python的字串處理(string processing)! ... 並右對齊"345".rjust(10,"0") #能以任意字元填充空格"345".zfill(10) #在左邊填充一定數量的0.
確定! 回上一頁