%ws is used for the output of character strings.
format |
string |
output |
|
|
|
|
(1) |
|
|
|
(2) |
|
|
|
(3) |
|
|
|
(4) |
|
|
|
(5) |
(1) minimum field width,
(2) minimum of 9 characters, right justified,
(3) right justified in a space the width of 9 characters
(4) maximum of 4 characters,
(5) minimum of 9 characters, left justified.