2022-04-01 7a2518db00b35b3f4e805c36c89a9602 99+ fast 0.0 k0 visitscollections1 Counter 1234from collections import CounterCounter([-3,4,2,2])Out[8]: Counter({-3: 1, 4: 1, 2: 2}) collectionshttp://example.com/2022/04/01/python-counter/AuthorLavine HuPosted on2022-04-01Updated on2022-04-10Licensed under# Related Post 1.logging 2.python内存管理 3.路径 4.pandas 5.类 6.metaclass 7.unittest 8.list