摘要: a = [1, 2, 4 ,7] k = 13 def dfs(a:list, k:int, cur: int, res:list) ->list: if k == 0: print(res) exit(0) if k < 0 or cur == len(a): return [] # 不选,当前指 阅读全文
posted @ 2021-02-07 21:05 EdenWu 阅读(44) 评论(0) 推荐(0) 编辑