#!/usr/bin/python
#coding:utf-8
import random,string
x=string.digits+string.letters
passwd=''
for i in range(8):
tmp=random.choice(x)
passwd+=tmp
print passwd
转载于:https://blog.51cto.com/13587189/2070315
#!/usr/bin/python
#coding:utf-8
import random,string
x=string.digits+string.letters
passwd=''
for i in range(8):
tmp=random.choice(x)
passwd+=tmp
print passwd
转载于:https://blog.51cto.com/13587189/2070315