パーソナルツール

書式文字列を使う

作者: 小見 拓 最終変更 2012年01月08日 12時14分

書式文字列を使う

:echo printf("this is %s and %s", "AAA", "BBB")
"# => this is AAA and BBB

:echo printf("No. %04d", "5")
"# => No. 0005
ドキュメントアクション
コメント
blog comments powered by Disqus