You're already getting each pl
dictionary from list1
via:
for pl in list1:
You can't use a list's item as a list index. So, list1[pl]
will fail since pl
is a dictionary. It's unnecessary to do list1[pl]
since pl
is already an item from list1
.
You just need to do this:
for pl in list1:
for s in pl["cards"]:
So, everywhere else where you're doing list1[pl]
, you need to replace it with just pl
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…