python 中格式化输出%d,%-5d, %05d,%.5f区别 · 以打印输出1-100间整数的累计求和为例,进行说明: · 2. %-5d 整数输出,整数的宽度是5位,不足5位,右边补空格.
確定! 回上一頁