我需要编写产生所有可能的 8 个符号字符串的生成器。从这样的符号数组中:
leters = ['1','2','3','4','5','6','7','8','9','0','q','w','e','r','t','y','u','i','o','p','a','s','d','f','g','h','j','k','l','z','x','c','v','b','n','m']
骨架看起来像这样:
def generator():
"""
here algorithm
"""
yield string
假设返回这样的列表['00000001','00000002','00000003', ......'mmmmmmmm']