pprint_table(out,
table,
justs=None,
separator=None,
outer_seps=False,
widths=None,
blank_row=False,
default_just=None,
hanging_indent=0)
| source code
|
Prints out a table of data, padded for alignment. Each row must have
the same number of columns.
Cells may include line breaks.
- Parameters:
out (file-like object) - output stream
table (list of lists) - table to print.
outer_seps (bool) - Prints separators at the start and end of each row if true.
widths (list of ints) - maximum width for each column. None means no maximum is imposed.
Words are wrapped if the width exceeds the maximum
default_just (bool) - the default justification to use for all columns if
justs is not given or where a column's justification
is not given. Default False
hanging_indent (int) - hanging indent to apply to the column if a cell is wrapped
(number of spaces)
|