1. <legend id='Nn00y'><style id='Nn00y'><dir id='Nn00y'><q id='Nn00y'></q></dir></style></legend>
    <i id='Nn00y'><tr id='Nn00y'><dt id='Nn00y'><q id='Nn00y'><span id='Nn00y'><b id='Nn00y'><form id='Nn00y'><ins id='Nn00y'></ins><ul id='Nn00y'></ul><sub id='Nn00y'></sub></form><legend id='Nn00y'></legend><bdo id='Nn00y'><pre id='Nn00y'><center id='Nn00y'></center></pre></bdo></b><th id='Nn00y'></th></span></q></dt></tr></i><div id='Nn00y'><tfoot id='Nn00y'></tfoot><dl id='Nn00y'><fieldset id='Nn00y'></fieldset></dl></div>

    <tfoot id='Nn00y'></tfoot>
    • <bdo id='Nn00y'></bdo><ul id='Nn00y'></ul>

    1. <small id='Nn00y'></small><noframes id='Nn00y'>

      JJAA2循环中DICT的排序字典

      Sort dict of dict in jinja2 loop(JJAA2循环中DICT的排序字典)

        • <bdo id='xNjXJ'></bdo><ul id='xNjXJ'></ul>
            <legend id='xNjXJ'><style id='xNjXJ'><dir id='xNjXJ'><q id='xNjXJ'></q></dir></style></legend>
            <tfoot id='xNjXJ'></tfoot>
                <i id='xNjXJ'><tr id='xNjXJ'><dt id='xNjXJ'><q id='xNjXJ'><span id='xNjXJ'><b id='xNjXJ'><form id='xNjXJ'><ins id='xNjXJ'></ins><ul id='xNjXJ'></ul><sub id='xNjXJ'></sub></form><legend id='xNjXJ'></legend><bdo id='xNjXJ'><pre id='xNjXJ'><center id='xNjXJ'></center></pre></bdo></b><th id='xNjXJ'></th></span></q></dt></tr></i><div id='xNjXJ'><tfoot id='xNjXJ'></tfoot><dl id='xNjXJ'><fieldset id='xNjXJ'></fieldset></dl></div>

                <small id='xNjXJ'></small><noframes id='xNjXJ'>

                  <tbody id='xNjXJ'></tbody>

                本文介绍了JJAA2循环中DICT的排序字典的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                如何对字典进行排序,如

                my_dict = {
                    'abc': {'name': 'B', 'is_sth': True},
                    'xyz': {'name': 'A', 'is_sth': True}
                }
                

                name在津家?

                我已尝试{% for id, data in my_dict|dictsort(by='value') if data.is_sth %},但未按预期工作。

                推荐答案

                解决方案:

                my_dict.items()|sort(attribute='1.name')

                这篇关于JJAA2循环中DICT的排序字典的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                groupby multiple coords along a single dimension in xarray(在xarray中按单个维度的多个坐标分组)
                Group by and Sum in Pandas without losing columns(Pandas中的GROUP BY AND SUM不丢失列)
                Group by + New Column + Grab value former row based on conditionals(GROUP BY+新列+基于条件的前一行抓取值)
                Groupby and interpolate in Pandas(PANDA中的Groupby算法和插值算法)
                Pandas - Group Rows based on a column and replace NaN with non-null values(PANAS-基于列对行进行分组,并将NaN替换为非空值)
                Grouping pandas DataFrame by 10 minute intervals(按10分钟间隔对 pandas 数据帧进行分组)

                        <bdo id='d8PRu'></bdo><ul id='d8PRu'></ul>

                        <tfoot id='d8PRu'></tfoot>
                        <i id='d8PRu'><tr id='d8PRu'><dt id='d8PRu'><q id='d8PRu'><span id='d8PRu'><b id='d8PRu'><form id='d8PRu'><ins id='d8PRu'></ins><ul id='d8PRu'></ul><sub id='d8PRu'></sub></form><legend id='d8PRu'></legend><bdo id='d8PRu'><pre id='d8PRu'><center id='d8PRu'></center></pre></bdo></b><th id='d8PRu'></th></span></q></dt></tr></i><div id='d8PRu'><tfoot id='d8PRu'></tfoot><dl id='d8PRu'><fieldset id='d8PRu'></fieldset></dl></div>

                        <small id='d8PRu'></small><noframes id='d8PRu'>

                            <tbody id='d8PRu'></tbody>
                        1. <legend id='d8PRu'><style id='d8PRu'><dir id='d8PRu'><q id='d8PRu'></q></dir></style></legend>