1. Counter(hashable) 直接使用统计可哈希元素每个元素的数量。 2. most_common:可以统计数量最多的n个元素。 3. compress(iterable, callable) 根据序列去选择输出对应位置为 True 的元素。 4. choice(iterable) ra Read More
posted @ 2018-11-22 11:04 浅尝辄止易初心不改难 Views(154) Comments(0) Diggs(0) Edit
1.any() iterable元素是不是全为0 2.all() iterable元素是不是有0 Read More
posted @ 2018-11-22 10:35 浅尝辄止易初心不改难 Views(84) Comments(0) Diggs(0) Edit