☜
倒序操作很简单,使用 reversed( ) 方法,原本是 ['a', 'b', 'c'],倒序后就是 ['c', 'b', 'a']
Ref:在线运行Python代码
Refer:Python dict技巧
Link:https://www.cnblogs.com/farwish/p/13220685.html
posted on 2020-07-01 18:11 ercom 阅读(1326) 评论(0) 编辑 收藏 举报