One liner to determine if dictionary values are all empty lists or not

前端 未结 6 887
-上瘾入骨i
-上瘾入骨i 2021-01-01 22:24

I have a dict as follows:

someDict = {\'a\':[], \'b\':[]}

I want to determine if this dictionary has any values which are not empty lists.

6条回答
提交回复
热议问题