This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
__doc__ = """Tiny HTTP Proxy. | |
This module implements GET, HEAD, POST, PUT and DELETE methods | |
on BaseHTTPServer, and behaves as an HTTP proxy. The CONNECT | |
method is also implemented experimentally, but has not been | |
tested yet. | |
Any help will be greatly appreciated. SUZUKI Hisao |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
元素 e 的深度,为同辈兄长的深度,加兄长及其兄长孩子的数量,长子不计其数。 | |
当元素 e 没有同辈兄长时,则继承父辈的深度。 | |
比如: | |
1、兄长的深度为 2,有 3 个孩子。则 e 的深度为 2(兄长深度) + 3(孩子数量) - 1(长子) + 1(兄长自己) = 5。 | |
2、兄长的深度为 1,有 1 个孩子。则 e 的深度为 1(兄长深度) + 1(孩子数据) - 1(长子) + 1(兄长自己) = 2。 | |
3、兄长的深度为 1,没有孩子。则 e 的深度为 1(兄长深度) + 1(兄长自己) = 2。 |