How can i remove duplicates for a endless generator?

前端 未结 0 1757
灰色年华
灰色年华 2020-12-01 17:20

if i have a random sample generator, which sample from a large space(which is cant enumerate).

def random_generator(n=3):
  ####  .....  ####
  yield random.c         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题