
import numpy as np
testdata = {'01': [67,88,45], '02':[97,68,85], '03':[97,98,95]}
res = []
count = 0
for (key,val) in testdata.items():
for item in val:
if item > 85:
count +=1
if count == 3:
res.append(key)
count = 0
输出:
# res = ['03]
第一题,有用麻烦给个采纳,谢谢