python 的字串格式規劃大略有2 種,期中format 可分為字串型與函數型 ... print("{:4}/{:2}/{:02}".format(2019,10,3)), 利用前導0 ,可使數字補零。 2019/10/03.
確定! 回上一頁