我是靠谱客的博主 秀丽水杯,这篇文章主要介绍生成自己的密码本,现在分享给大家,希望可以做个参考。

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("生成成功!")

最后

以上就是秀丽水杯最近收集整理的关于生成自己的密码本的全部内容,更多相关生成自己内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(46)

评论列表共有 0 条评论

立即
投稿
返回
顶部