pythton 语言的独特语法
1. python 中的 && | 用 and 和or 表示
2. 判空 if root if not root
queue = []
3. 方法内部调用自己要用self
4.判空 if not list
list[-1] 取最后一个元素
list[:1] 包含1
list[1:] 不包含1
list[1:2] 包含1 不包含1
1. python 中的 && | 用 and 和or 表示
2. 判空 if root if not root
queue = []
3. 方法内部调用自己要用self
4.判空 if not list
list[-1] 取最后一个元素
list[:1] 包含1
list[1:] 不包含1
list[1:2] 包含1 不包含1