from random import choice

# 定义在哪些字符中随机选取
all_chs = '0123456789qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM'
# 定义用于保存结果的变量
result = ''

# 随机选取8次，每次的结果拼接到result中
for i in range(8):
    ch = choice(all_chs)
    result += ch

print(result)

098c7d73e23489035008cf073898a92b7407c496
<mask token>

<mask token>
for i in range(8):
    ch = choice(all_chs)
    result += ch
print(result)

<mask token>
all_chs = '0123456789qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM'
result = ''
for i in range(8):
    ch = choice(all_chs)
    result += ch
print(result)

from random import choice
all_chs = '0123456789qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM'
result = ''
for i in range(8):
    ch = choice(all_chs)
    result += ch
print(result)

from random import choice

# 定义在哪些字符中随机选取
all_chs = '0123456789qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM'
# 定义用于保存结果的变量
result = ''

# 随机选取8次，每次的结果拼接到result中
for i in range(8):
    ch = choice(all_chs)
    result += ch

print(result)
