回溯算法解题框架 - 图1记录成伪代码如下:

    1. def backtrack(...):
    2. for 选择 in 选择列表:
    3. 做选择
    4. backtrack(...)
    5. 撤销选择