生成随机密码

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

#!/usr/bin/env python

from random import choice
import string

def GenPasswd(length=8,chars=string.letters+string.digits):
    return ''.join([ choice(chars) for i in range(length)])

for i in range(10):
    print GenPasswd(12)