Why, in this code, the sets are the same every time?

前端 未结 0 588
太阳男子
太阳男子 2021-01-15 12:36
def random():
    string1 = \'0.\'
    for i in range(16):
        string2 = \'1 2 3 4 5 6 7 8 9 0\'
        lst1 = string2.split()
        set1 = set(lst1)
                 


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