from bloom_filter import BloomFilter # 生成一个装1亿大小的 bloom = BloomFilter(max_elements=100000000, error_rate=0.1) # 向bloom添加URL bloom.add('https://www.xxxx.com/1.html') #判断URL是否在 print(bloom.__contains__('https://www.xxxx.com/1.html'))