利用Python创建密码本

import itertools as its
#迭代器

word = "1234567890"
r = its.product(word,repeat = 8)
#保存在文件中
pwd = open("pass.txt","a")
for i in r:
      pwd.write("".join(i))
      pwd.write("".join("\n"))
pwd.close()

你可能感兴趣的:(利用Python创建密码本)