如果您住在气候温暖的地方,您可以在树上挂个问候。
If you live in a place with a warm climate you can hang greetings in the trees.
表面上看来,该模式很 像递归 — 但它不是递归(而且重复调度不需要一定在最后一行进行,可以在您期望的地方进行调度)。
On its face, this pattern looks a lot like recursion -- but it is not (moreover, the repeat scheduling need not occur on the last line; it just makes sense there).
使用这种方式,如果您在某一时间必须修改您搜索的方法,您可以在一个地方修改它,它会在您所有调用该模块的测试脚本中生效。
That way if you ever have to change the way you search, you can change it in one place and it gets fixed in all your test scripts that call that module.
应用推荐