import itertools as its
word=input("其输入可能是密码的字符:")
word_len=int(input("密码长度:"))
r=its.product(word,repeat=word_len)
dict=open(".pyhton密码本.txt",'a')
for i in r:
dict.write("".join(i))
dict.write("".join('n'))
dict.close()
print("生成成功!")
最后
以上就是秀丽水杯最近收集整理的关于生成自己的密码本的全部内容,更多相关生成自己内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复