列表中的字典,根据字典的字段排序
_db_info.sort(key=lambda x: (x['db_name']))
其他参考:
https://blog.csdn.net/weixin_42814075/article/details/129724014
https://www.ycpai.cn/python/Fu4yKTRG.html
微信扫一扫
列表中的字典,根据字典的字段排序
_db_info.sort(key=lambda x: (x['db_name']))
其他参考:
https://blog.csdn.net/weixin_42814075/article/details/129724014
https://www.ycpai.cn/python/Fu4yKTRG.html
相关推荐