尝试用循环代替递归遍历

Signed-off-by: Your Name <email@example.com>