张帆 20

print(ord('A'))
print(ord('a'))
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)张帆 20_第1张图片

你可能感兴趣的:(张帆 20)