python res=[] def gen(x): if len(x)==6: res.append(x) return a=x[-1] for i in xrange(a+1,10): gen(x+[i])
タグ: