26个大小写英文字母数字随机密码

print(ord('A'))
print(ord('a'))
print(ord('0'))
import random
SecChar = []
for i in range(26):
    SecChar.extend(chr(random.randint(65,90)))
for i in range(26):
    SecChar.extend(chr(random.randint(97,122)))
for i in range(9):
    SecChar.extend(chr(random.randint(48,58)))
print(SecChar)
for i in range(10):
    password = ""
    for j in range (8):
        s = random.choice(SecChar)
        password+=s
    print(password)

26个大小写英文字母数字随机密码_第1张图片

 

你可能感兴趣的:(26个大小写英文字母数字随机密码)