a={"1":2,"e":"r","g":"5","3":2,"2":"r"} b=a a=list(a.keys()) a.reverse() a=a[:-2] a.reverse() c={} for i in a: c[i]=b[i] a=c print(a)
posted on 2020-08-21 18:36 不知所以随风飘动 阅读(142) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2025 不知所以随风飘动 Powered by .NET 9.0 on Kubernetes