FixedWidthTwoLine#
- class astropy.io.ascii.FixedWidthTwoLine(position_line=None, position_char='-', delimiter_pad=None, bookend=False, header_rows=None)[源代码]#
基类:
FixedWidth
具有两个标题行的固定宽度表格。
第一个标题行定义列名,第二个标题行隐式定义列位置。
实例:
# Typical case with column extent defined by ---- under column names. col1 col2 <== header_start = 0 ----- ------------ <== position_line = 1, position_char = "-" 1 bee flies <== data_start = 2 2 fish swims # Pretty-printed table +------+------------+ | Col1 | Col2 | +------+------------+ | 1.2 | "hello" | | 2.4 | there world| +------+------------+
请参阅 固定宽度画廊 有关特定用法的示例。