Appearance
根据指定的函数对列表元素进行计数。
from usepy import count_by
lst
fn
>>> count_by([1.2, 2.3, 3.4, 4.5], math.floor) {1: 1, 2: 1, 3: 1, 4: 1}