Skip to content

Instantly share code, notes, and snippets.

View jamesiter's full-sized avatar

jimit jamesiter

View GitHub Profile
@jamesiter
jamesiter / DemoProxy.py
Created April 8, 2019 11:08 — forked from epinna/DemoProxy.py
Tiny HTTP Proxy
#!/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
元素 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。