1 Star 1 Fork 1

luohanye/python-core

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
psssword_generator.py 499 Bytes
一键复制 编辑 原始数据 按行查看 历史
zyeltn 提交于 2024-03-07 16:47 +08:00 . update
#! python3
import random
print('''
========================
密码生成器
========================
''')
numberOfPassword = int(input('要生成几个密码?'))
lengthOfPassword = int(input('要生成几位数的密码?'))
sourceOfPassword = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!@£$%^&*().,?0123456789'
for i in range(numberOfPassword):
password = ''
for j in range(lengthOfPassword):
password += random.choice(sourceOfPassword)
print(password)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/indexman/python-core.git
git@gitee.com:indexman/python-core.git
indexman
python-core
python-core
master

搜索帮助