[Py] Python dict 倒序操作

通过llama.cpp与羊驼聊天的网页界面- 详解 Serge 的启动使用

 

倒序操作很简单,使用 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编辑  收藏  举报