def get_pwd(str, num):#str为可选字符集,num为密码长度
        if(num == 1):
            for x in str:
                yield x
        else:
            for x in str:
                for y in get_pwd(str, num-1):
                    yield x+y

strKey=""#可选字符集
for i in range(33,127):#所有可见字符
    strKey+=chr(i)
    
for x in get_pwd(strKey,17):
    #x+="0823}"
    print(x)

相关文章:

  • 2022-03-04
  • 2022-12-23
  • 2021-07-31
  • 2021-12-12
  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
  • 2021-10-16
猜你喜欢
  • 2022-02-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-03
相关资源
相似解决方案