PyWebIO v0.3.0 使用手册(str) – 代码语言 anchor, before, after (str) – 与 put_text 函数的同名参数 含义一致 pywebio.output.put_table(tdata, header=None, span=None, anchor=None, before=None, after=None) → pywebio.io_ctrl.OutputReturn 输出表格 tdata put_xxx 类型的输出函 数,字符串内容的单元格显示时会被当作html。 header (list) – 设定表头。 当 tdata 的列表项为 list 类型时,若省略 header 参数,则使用 tdata 的第一项作为表头。 当 tdata 为字典列表时,使用 header 指定表头顺序,不 可省略。 此时, header 格式可以为 <字典键>列表 或者 (<显示文本>, <字典键>) 列表。 'America'], ], header=['Name', 'Gender', 'Address']) # dict类型的表格行 put_table([ {"Course":"OS", "Score": "80"}, {"Course":"DB", "Score": "93"}, ], header=["Course", "Score"]) # or header=[("课程", "Course")0 码力 | 72 页 | 8.55 MB | 1 年前3
PyWebIO v0.3.0 使用手册(str) –代码语言 • anchor, before, after (str) –与put_text 函数的同名参数含义一致 pywebio.output.put_table(tdata, header=None, span=None, anchor=None, before=None, af- ter=None) → pywebio.io_ctrl.OutputReturn 输出表格 参数 put_xxx 类型的输出函数,字符串内容的单元格显示时会被当作 html。 • header (list) –设定表头。当 tdata 的列表项为 list 类型时,若省略 header 参 数,则使用 tdata 的第一项作为表头。 当 tdata 为字典列表时,使用 header 指定表头顺序,不可省略。此时,header 格式可以为 < 字典键 > 列表或者 (< 显示文本>, < 字典键>) 'America'], ], header=['Name', 'Gender', 'Address']) # dict 类型的表格行 put_table([ {"Course":"OS", "Score": "80"}, {"Course":"DB", "Score": "93"}, ], header=["Course", "Score"]) # or header=[(" 课程", "Course")0 码力 | 70 页 | 1.41 MB | 1 年前3
PyWebIO v1.2.3 Documentation(int) – Those arguments have the same meaning as for put_text() pywebio.output.put_table(tdata, header=None, scope=- 1, position=- 1) → pywebio.io_ctrl.Output Output table Parameters 40 Chapter 4. the cell span. • header (list) – Table header. When the item of tdata is of type list, if the header parameter is omitted, the first item of tdata will be used as the header. The header item can also use set the cell span. When tdata is list of dict, header is used to specify the order of table headers, which cannot be omitted. In this case, the header can be a list of dict key or a list of (0 码力 | 92 页 | 1.32 MB | 1 年前3
PyWebIO v1.2.2 Documentation(int) – Those arguments have the same meaning as for put_text() pywebio.output.put_table(tdata, header=None, scope=- 1, position=- 1) → pywebio.io_ctrl.Output Output table Parameters 40 Chapter 4. the cell span. • header (list) – Table header. When the item of tdata is of type list, if the header parameter is omitted, the first item of tdata will be used as the header. The header item can also use set the cell span. When tdata is list of dict, header is used to specify the order of table headers, which cannot be omitted. In this case, the header can be a list of dict key or a list of (0 码力 | 92 页 | 1.35 MB | 1 年前3
PyWebIO v1.2.3 Documentation(int) – Those arguments have the same meaning as for put_text() pywebio.output.put_table(tdata, header=None, scope=- 1, position=- 1) → pywebio.io_ctrl.Output Output table tdata (list) – Table data set the cell span. header (list) – Table header. When the item of tdata is of type list, if the header parameter is omitted, the first item of tdata will be used as the header. The header item can also use to set the cell span. When tdata is list of dict, header is used to specify the order of table headers, which cannot be omitted. In this case the header can be a list of dict key or a list of (0 码力 | 119 页 | 7.43 MB | 1 年前3
PyWebIO v1.2.2 Documentation(int) – Those arguments have the same meaning as for put_text() pywebio.output.put_table(tdata, header=None, scope=- 1, position=- 1) → pywebio.io_ctrl.Output Output table tdata (list) – Table data set the cell span. header (list) – Table header. When the item of tdata is of type list, if the header parameter is omitted, the first item of tdata will be used as the header. The header item can also use to set the cell span. When tdata is list of dict, header is used to specify the order of table headers, which cannot be omitted. In this case the header can be a list of dict key or a list of (0 码力 | 119 页 | 7.41 MB | 1 年前3
PyWebIO v1.3.3 Documentation(int) – Those arguments have the same meaning as for put_text() pywebio.output.put_table(tdata, header=None, scope=- 1, position=- 1) → pywebio.io_ctrl.Output Output table Parameters 42 Chapter 4. the cell span. • header (list) – Table header. When the item of tdata is of type list, if the header parameter is omitted, the first item of tdata will be used as the header. The header item can also use set the cell span. When tdata is list of dict, header is used to specify the order of table headers, which cannot be omitted. In this case, the header can be a list of dict key or a list of (0 码力 | 100 页 | 1.34 MB | 1 年前3
PyWebIO v1.3.1 Documentation(int) – Those arguments have the same meaning as for put_text() pywebio.output.put_table(tdata, header=None, scope=- 1, position=- 1) → pywebio.io_ctrl.Output Output table Parameters 42 Chapter 4. the cell span. • header (list) – Table header. When the item of tdata is of type list, if the header parameter is omitted, the first item of tdata will be used as the header. The header item can also use set the cell span. When tdata is list of dict, header is used to specify the order of table headers, which cannot be omitted. In this case, the header can be a list of dict key or a list of (0 码力 | 100 页 | 1.34 MB | 1 年前3
PyWebIO v1.3.0 Documentation(int) – Those arguments have the same meaning as for put_text() pywebio.output.put_table(tdata, header=None, scope=- 1, position=- 1) → pywebio.io_ctrl.Output Output table Parameters 42 Chapter 4. the cell span. • header (list) – Table header. When the item of tdata is of type list, if the header parameter is omitted, the first item of tdata will be used as the header. The header item can also use set the cell span. When tdata is list of dict, header is used to specify the order of table headers, which cannot be omitted. In this case, the header can be a list of dict key or a list of (0 码力 | 100 页 | 1.34 MB | 1 年前3
PyWebIO v1.3.2 Documentation(int) – Those arguments have the same meaning as for put_text() pywebio.output.put_table(tdata, header=None, scope=- 1, position=- 1) → pywebio.io_ctrl.Output Output table Parameters 42 Chapter 4. the cell span. • header (list) – Table header. When the item of tdata is of type list, if the header parameter is omitted, the first item of tdata will be used as the header. The header item can also use set the cell span. When tdata is list of dict, header is used to specify the order of table headers, which cannot be omitted. In this case, the header can be a list of dict key or a list of (0 码力 | 100 页 | 1.34 MB | 1 年前3
共 86 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













