So finden Sie die Häufigkeit, mit der eine Zahl in Python erscheint

dict((i, a.count(i)) for i in a)
Itchy Ibis