import random
list = [
'a',
'b',
'c',
'd',
'e',
'f',
'g',
'h',
'i',
'j',
'k',
'l',
'm',
'n',
'o',
'p',
'q',
'r',
's',
't',
'u',
'v',
'w',
'x',
'y',
'z'
]
list1 = [
'!',
'@',
'#',
'$',
'¥',
'%',
'^',
'……',
'&',
'*',
'(',
')',
'-',
'_',
'=',
'+',
'[',
'{',
'}',
']',
'?',
'/',
':',
';',
'<',
'>',
'《',
'》',
'.',
',',
'~',
'`',
'·',
'‘',
'’',
]
i = random.choice(list)
j = str(random.randint(1,9))
k = random.choice(list)
l = random.choice(list1)
m = random.choice(list)
n = str(random.randint(1,9))
up = random.choice(list)
o = up.upper()
p = random.choice(list)
q = up.upper()
r = random.choice(list)
s = random.choice(list1)
t = str(random.randint(1,9))
u = up.upper()
v = random.choice(list)
w = random.choice(list1)
x = random.choice(list)
y = str(random.randint(1,9))
z = random.choice(list)
a = random.choice(list)
b = random.choice(list1)
c = str(random.randint(1,9))
d = random.choice(list)
e = up.upper()
f = random.choice(list1)
g =random.choice(list)
h = random.choice(list1)
password = i + j + k + l + m + n + o + p + q + r + s + t + u + v + w + x + y + z + a + b + c + d + e + f + g + h
print('密码')
print(password)
03-08
2361
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-27
09-02
05-16