以下是显示其基本用法的示例代码-. Live Demo. #!/usr/bin/perl -w $text=sprintf("%0d\n", 9); print "Formated string $text\n";. 执行上述代码后,将产生以下输出-
確定! 回上一頁