Ruby では書式付き文字列の作成方法が複数あり、 ... hoge = "hoge" puts format("%10s", hoge) puts sprintf("%10s", hoge) puts "%10s" % hoge ...
確定! 回上一頁