把一个列表 遍历两层for循环,里层的for是外层的余集(根据序号) def p(c,list_): print c, s=[2,3] map(p, s,[s[x:] for x in range(len(s))])