打印26个英文字母
[i for i in map(chr, range(ord('a'), ord('z') + 1))]
import random
def getWList():
return [str(i) for i in range(0, 10, 1)] + [i for i in map(chr, range(ord('A'), ord('Z') + 1))] + [i for i in
map(chr, range(
ord('a'),
ord(
'z') + 1))]
def getNonce(len_=32):
pool = getWList()
return ''.join([random.choice(pool) for i in range(0, len_, 1)])