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>

     

  • 相关阅读:
    P1265 公路修建 最小生成树
    P1991 无线通讯网 最小生成树
    Stock Chase 拓扑
    Rank of Tetris 拓扑排序+并查集
    P1169 [ZJOI2007]棋盘制作 DP悬线法
    P4147 玉蟾宫 二维DP 悬线法
    P1341 无序字母对 欧拉回路
    P2921 [USACO08DEC]在农场万圣节Trick or Treat on the Farm 记忆化搜索dfs
    BSTestRunner插件的用法.py
    Selenium
  • 原文地址:https://www.cnblogs.com/huangjiangyong/p/12504291.html
Copyright © 2011-2022 走看看