import itertools
list1 = ['0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','y','z']
passwrod = []
for i in range(1,len(list1)+1):
#生成排列组合数据
iter = itertools.combinations_with_replacement(list1,i)
#添加到列表
passwrod.append(list(iter))