(self, table_heads)
| 212 | |
| 213 | class Table: |
| 214 | def __init__(self, table_heads): |
| 215 | self.table_heads = table_heads |
| 216 | self.table_len = [] |
| 217 | self.data = [] |
| 218 | self.col_num = len(table_heads) |
| 219 | for head in table_heads: |
| 220 | self.table_len.append(len(head)) |
| 221 | |
| 222 | def add_row(self, row_str): |
| 223 | if not isinstance(row_str, list): |