#coding:utf-8; import itertools; #使用permutations方法; ls = itertools.combinations('ABCD', 2); #遍历所有组合情况; for l in ls: print(l).
確定! 回上一頁