So berechnen Sie die Genauigkeit mit zwei Listen in Python

sum(1 for x,y in zip(a,b) if x == y) / float(len(a))
Darkstar