for i in range(97,110): #97为ASCII中a代码,109为m for j in range(97,110): print unichr(i)+unichr(j)
alp_set = range(ord('a'), ord('m')+1):for i in alp_set: print [join(chr(i),chr(j)) for j in alp_set]