We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
["", "<td", " colspan="2"", ">", "", "<td", " colspan="2"", ">", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "<td", " rowspan="2"", ">", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "<td", " rowspan="2"", ">", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""]
我生成的表格是没有thead 和tbody 符号,这个符号一定需要?导致: def get_headbody(html_str): """Calculating number of bboxes belonging to "t-head" and "t-body" respectively
Args: html_str(str): html representing table structure Returns: int: number of bboxes belonging to "t-head" int: number of bboxes belonging to "t-body" """ # html_code = ''.join(html_str) # html_str = list('''<html><body><table>%s</table></body></html>''' % html_code) s_h, e_h = html_str.index('<thead>'), html_str.index('</thead>') s_b, e_b = html_str.index('<tbody>'), html_str.index('</tbody>') num_h = html_str[s_h + 1:e_h].count('</td>') num_b = html_str[s_b + 1:e_b].count('</td>') return num_h, num_b
这个函数转换失败
The text was updated successfully, but these errors were encountered:
No branches or pull requests
["", "<td", " colspan="2"", ">", "", "<td", " colspan="2"", ">", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "<td", " rowspan="2"", ">", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "<td", " rowspan="2"", ">", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""]
我生成的表格是没有thead 和tbody 符号,这个符号一定需要?导致:
def get_headbody(html_str):
"""Calculating number of bboxes belonging to "t-head" and "t-body" respectively
这个函数转换失败
The text was updated successfully, but these errors were encountered: