https://www.cnblogs.com/anzhengyu/p/11083568.html      层次遍历python3