subdns icon indicating copy to clipboard operation
subdns copied to clipboard

More elegent way to generate dict

Open AngrygrayWolf opened this issue 5 years ago • 0 comments

The make4_num.py, why not use the recursive like this

def generate_four_dict(storage, x="", count=4):
    if count == 0:
        storage.append(x)
        return
    count = count - 1
    for t in alpha:
        generate_alpha(storage, x+t, count)

AngrygrayWolf avatar Dec 15 '19 13:12 AngrygrayWolf