占位

%s 可以给任意数据占位

%d 只能给数据占位 print('%08d' %2) 8位数,不足部分0代替

posted @ 2022-07-14 18:51  轻飘飘的树  阅读(31)  评论(0)    收藏  举报