zoukankan      html  css  js  c++  java
  • python | table 表格合并列

    <table class="static-table"><thead><tr><th>&nbsp;</th> <th>序号</th> <th>网站名称</th> <th>相关篇数</th></tr></thead> <tbody>

            {% for dict_list in wangzhantongji1  %}

                {% for key,value in dict_list.items() %}

                    {% if key == "functionname" %}

                    <tr>

                        <td width="15%" rowspan={{dict_list["counte"]|length}}>{{dict_list["functionname"]}}</td>

                    {% else %}

                    {% for data in value%}

                        {% if loop.first %}

                        <td width="11%">{{data["number"]|he}}</td>

                        <td width="11%">{{data["name"]|he}}</td>

                        <td width="11%">{{data["count"]|he}}</td>

                        </tr>

                        {% else %}

                        <tr>

                            <td width="11%">{{data["number"]|he}}</td>

                            <td width="11%">{{data["name"]|he}}</td>

                            <td width="11%">{{data["count"]|he}}</td>

                        </tr>

                        {% endif%}

                    {% endfor %}

                    {% endif %}

                {% endfor %}

            {% endfor %}

            </tbody>

    </table>

     

  • 相关阅读:
    tp学习 第一天
    Sqlmap绕WAF学习
    绕过验证码进行SQL注入
    sqlmap 命令
    内网基础知识
    运维 | Ubuntu apache2 反向代理 接flask
    re | [watevrCTF 2019]Repyc
    web | [Windows][BJDCTF 2nd]EasyAspDotNet
    web | [BSidesCF 2020]Hurdles
    web | [pasecactf_2019]flask_ssti
  • 原文地址:https://www.cnblogs.com/huangjiangyong/p/12504291.html
Copyright © 2011-2022 走看看