Python3 代码
from itertools import permutations
class Solution:
def permutation(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
nums.sort()
re = list(permutations(nums))
return list(set(re))