printf ("%3d\n", 5);

printf ("%03d\n", 5);

输出为

   5

005

posted on 2023-01-04 21:27  山东林更新  阅读(178)  评论(0)    收藏  举报