結果 : write a python function to generate all permutations of a list