python 随机生成任意数字任意长度的密码

[root@harbor ~]# cat test3.py #!/usr/bin/python import random a=[] for i in range(1,40): a.append(i) random.shuffle(a) b=[str(i) for i in a] print b c=''.join(b)[1:33] print c,len(c)    转载于:https://
相关文章
相关标签/搜索