python密码生成器
2018-07-20 来源:open-open
python密码生成器,,,,,,,,,,,,,,,,,
from random import randrange, sample #定义列表 password_list = ['z','y','x','w','v','u','t','s','r','q','p','o','n','m','l','k','j','i','h','g','f','e','d','c','b','a', '0','1','2','3','4','5','6','7','8','9', '!','@','#','$','%','^','&','*','(',')','_','+','-','=', 'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z' ] leng=15 #定义长度 password = "".join(sample(password_list, leng)).replace(' ', '') print(password)
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点!
本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。
上一篇: ios网络开发 同步下载和异步下载
下一篇:双向链表实现java代码
最新资讯
热门推荐