Like, I have a array [2, 3, 'a', 'wow', 3]
, is there some function from it I can get a dict which key is the item of list and value is the nubmer of time which appear? like {2: 1, 3: 2, 'a': 1, 'wow': 1}
.
Asked
Active
Viewed 34 times
0

speedcell4
- 666
- 8
- 23