随机数作业


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]
    print(password)随机数作业

上一篇:5.15作业


下一篇:Python:从char字符串中获取int值