1 2 Fork me on GitHub 6

wifi密码本代码pycharm自动生成

# coding:utf-8
import itertools as its

# 迭代器
words = "1234567890"
# 生成密码本的位数,五位数,repeat=8
r = its.product(words, repeat=8)
# 保存在文件中,追加
dic = open("E:/password.txt", "a")
# i是元组
for i in r:
# jion空格链接
dic.write("".join(i))
dic.write("".join("\n"))
print(i)
dic.close()
print("密码本已生成")
posted @ 2021-04-26 21:41  鼬夜来香  阅读(295)  评论(0)    收藏  举报
1