mycode   86.06%

class Solution(object):
    def subsets(self, nums):
        """
        :type nums: List[int]
        :rtype: List[List[int]]
        """
        def dfs(nums,temp):
            self.res.append(temp)
            #print(temp)
            for i in range(len(nums)):
                dfs(nums[i+1:],temp+[nums[i]])
        self.res = []
        dfs(nums,[])
        return self.res