产生随机密码的脚本
作者:互联网
import random
from turtle import st
from unittest import result
def randomCode(): data='' code='' for i in range(10): data += str(i) for i in range(ord('a'),ord('z')+1): data += chr(i) result = random.sample(data,30)
for var in result: code += var return code print(randomCode())
def randomCode(): data='' code='' for i in range(10): data += str(i) for i in range(ord('a'),ord('z')+1): data += chr(i) result = random.sample(data,30)
for var in result: code += var return code print(randomCode())
标签:脚本,code,randomCode,random,密码,随机,import,data,result 来源: https://www.cnblogs.com/zhangcaiwang1/p/16209399.html