随机生成

随机生成_第1张图片print(ord("A"))
print(ord("a"))
print(ord("0"))
import random
SecChar=[]
for i in range(26):
    SecChar.extend(chr(i+(ord("A"))))
for i in range(26):
    SecChar.extend(chr(i+ord("a")))
for i in range(10):
    SecChar.extend(chr(i+ord("0")))
print(SecChar)
for i in range(9):
    password=''
    for j in range(7):
        s =int(random.randint(0,61))
        password += SecChar[s]

 

你可能感兴趣的:(随机生成)