#深度优先搜索 d = {'3':3, '4':4, '5':5, '6':6, '7':7, '8':8, '9':9, '10':10, 'J':11, 'Q':12, 'K':13, 'A':1, '2':2} def f(nums, target): if len(nums) == 1: if d[nums[0]] == target: res.append(nums[0]) return True else: return False for i in ...