print(ord('A'))

print(ord('a'))

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

print(ord('0'))

import random

SecChar=[]

for i in range(26):

SecChar.append(chr(i+ord('A')));

for i in range(26):

SecChar.append(chr(i+ord('a')));

for i in range(9):

SecChar.append(chr(i+ord('0')));

print(SecChar)

for i in range(10):

password=""

for j in range(8):

s=int(random.randint(1,60))

password+=SecChar[s]

print(password)

 

 在26个大小写字母(52个),以及9个数字组成的字符列表中,随机生成10个8位密码。 随笔

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄