from pybloom_live import BloomFilter f=BloomFilter(1000,0.001) for x in range(0,1000): f.add(x) print(4 in f)
运行结果如下:
2023-11-06 18:35:46
from pybloom_live import BloomFilter f=BloomFilter(1000,0.001) for x in range(0,1000): f.add(x) print(4 in f)
运行结果如下: