import itertools class Solution: def permutation(self, nums): """ :type nums: List[int] :rtype: List[List[int]] """ l= list(itertools.permutations(nums, len(nums))) return list(set(l))
实在不会啊