python获取八位随机密码
password = ''for i in range(8): current = random.randrange(0,8) if current > i: temp = random.randint(0,9) elif current < i: temp = chr(random.randint(65,90)) else: temp = chr(random.randint(97,122)) password += str(temp)print password
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。