a = {"a":[{"x":"1ib"},{"x":"syz"},{"x":"1ib"}],"b":[{"x":"1ib"},{"x":"syz"},{"x":"1ib"},{"x":"syz"}]}
l = []
dic = {}
for i in a:
l.append(i)
for h in a:
dic[h] = []
for j in l:
# print(j)
for k in a[j]:
if k["x"] == "1ib":
dic[j].append(k)
print(k)
print(dic)
阅读(258) | 评论(0) | 转发(0) |