Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 json-lib。
[{"VALUE":0},{"n1":1,"n2":2,"n3":3,"n4":4},{"item1":10,"item2":20,"item3":30},{"n5":5},{"item_40":40,"item_50":50}]
我想转换此代码,使其看起来像这样:
[[0],[1,2,3,4],[10,20,30],[5],[40,50]]
我怎样才能做到这一点?
在 json 中,“{}”标记表示字典(键值)类型。
如果要删除键,请在 {} 中获取值并将其添加到 list([])