The itertools module makes short work of this issue: >>> from itertools import chain. >>> list(set(chain.from_iterable(d))).
確定! 回上一頁