提交 adaa2f96 编写于 作者: F feilong

fix python bug

上级 b8a05139
...@@ -7,230 +7,295 @@ ...@@ -7,230 +7,295 @@
"keywords": [], "keywords": [],
"children": [ "children": [
{ {
"继承": { "类定义class": {
"keywords": [], "keywords": [],
"children": [ "children": [],
{ "node_id": "python-4-76"
"多重继承": { }
"keywords": [], },
"children": [], {
"node_id": "python-5-1428" "作用域和命名空间": {
} "keywords": [],
}, "children": [],
{ "node_id": "python-4-77"
"方法解析顺序": { }
"keywords": [], },
"children": [], {
"node_id": "python-5-1429" "对象": {
} "keywords": [],
}, "children": [],
{ "node_id": "python-4-78"
"使用super函数将控制权传递给其他类": { }
"keywords": [], },
"children": [], {
"node_id": "python-5-1430" "属性和方法": {
} "keywords": [],
}, "children": [
{ {
"自省": { "模拟数值类型": {
"keywords": [], "keywords": [],
"children": [], "children": [],
"node_id": "python-5-1431" "node_id": "python-5-43"
} }
} },
], {
"node_id": "python-4-1435" "字符串表示形式": {
} "keywords": [],
}, "children": [],
{ "node_id": "python-5-44"
"如何创建类": { }
"keywords": [], },
"children": [ {
{ "自定义的布尔值": {
"在运行时创建类": { "keywords": [],
"keywords": [], "children": [],
"children": [], "node_id": "python-5-45"
"node_id": "python-5-1432" }
} }
}, ],
{ "node_id": "python-4-79"
"元类": { }
"keywords": [], },
"children": [], {
"node_id": "python-5-1433" "类编码风格": {
} "keywords": [],
}, "children": [],
{ "node_id": "python-4-80"
"控制命名空间": { }
"keywords": [], },
"children": [], {
"node_id": "python-5-1434" "初探类": {
} "keywords": [],
} "children": [
], {
"node_id": "python-4-1436" "类定义语法": {
} "keywords": [],
}, "children": [],
{ "node_id": "python-5-46"
"成员变量": { }
"keywords": [], },
"children": [ {
{ "类对象": {
"属性": { "keywords": [],
"keywords": [], "children": [],
"children": [], "node_id": "python-5-47"
"node_id": "python-5-1435" }
} },
}, {
{ "方法对象": {
"描述器": { "keywords": [],
"keywords": [], "children": [],
"children": [], "node_id": "python-5-48"
"node_id": "python-5-1436" }
}
}
],
"node_id": "python-4-1437"
}
},
{
"方法": {
"keywords": [],
"children": [
{
"非绑定方法": {
"keywords": [],
"children": [],
"node_id": "python-5-1437"
}
},
{
"绑定方法": {
"keywords": [],
"children": [],
"node_id": "python-5-1438"
}
}
],
"node_id": "python-4-1438"
}
},
{
"魔术方法": {
"keywords": [],
"children": [
{
"处理成员变量": {
"keywords": [],
"children": [],
"node_id": "python-5-1439"
}
},
{
"字符串表示": {
"keywords": [],
"children": [
{
"字节字符串": {
"keywords": [],
"children": [
{
"借助chr和ord进行简单的转换": {
"keywords": [],
"children": [],
"node_id": "python-7-34"
}
},
{
"借助struct模块进行复杂的转换": {
"keywords": [],
"children": [],
"node_id": "python-7-35"
}
}
],
"node_id": "python-6-225"
}
},
{
"文本": {
"keywords": [],
"children": [
{
"Unicode": {
"keywords": [],
"children": [],
"node_id": "python-7-36"
}
},
{
"编码": {
"keywords": [],
"children": [],
"node_id": "python-7-37"
}
}
],
"node_id": "python-6-226"
}
},
{
"简单的替换": {
"keywords": [],
"children": [],
"node_id": "python-6-227"
}
},
{
"格式化": {
"keywords": [],
"children": [
{
"在对象中查找值": {
"keywords": [],
"children": [],
"node_id": "python-7-38"
}
},
{
"区分字符串类型": {
"keywords": [],
"children": [],
"node_id": "python-7-39"
}
},
{
"标准格式规范": {
"keywords": [],
"children": [],
"node_id": "python-7-40"
}
},
{
"为文本文档制作目录": {
"keywords": [],
"children": [],
"node_id": "python-7-41"
}
},
{
"自定义格式规范": {
"keywords": [],
"children": [],
"node_id": "python-7-42"
}
}
],
"node_id": "python-6-228"
}
} }
], ],
"node_id": "python-5-1440" "node_id": "python-4-81"
} }
} },
], {
"node_id": "python-4-1439" "补充说明": {
} "keywords": [],
"children": [],
"node_id": "python-4-82"
}
},
{
"私有变量": {
"keywords": [],
"children": [],
"node_id": "python-4-83"
}
},
{
"生成器表达式": {
"keywords": [],
"children": [],
"node_id": "python-4-84"
}
},
{
"类到底是什么": {
"keywords": [],
"children": [],
"node_id": "python-4-85"
}
},
{
"创建自定义类": {
"keywords": [],
"children": [],
"node_id": "python-4-86"
}
},
{
"再谈隐藏": {
"keywords": [],
"children": [],
"node_id": "python-4-87"
}
},
{
"类的命名空间": {
"keywords": [],
"children": [],
"node_id": "python-4-88"
}
},
{
"指定超类": {
"keywords": [],
"children": [],
"node_id": "python-4-89"
}
},
{
"深入探讨继承": {
"keywords": [],
"children": [],
"node_id": "python-4-90"
}
},
{
"多个超类": {
"keywords": [],
"children": [],
"node_id": "python-4-91"
}
},
{
"接口和内省": {
"keywords": [],
"children": [
{
"Python文化中的接口和协议": {
"keywords": [],
"children": [],
"node_id": "python-5-49"
}
},
{
"Python喜欢序列": {
"keywords": [],
"children": [],
"node_id": "python-5-50"
}
},
{
"使用猴子补丁在运行时实现协议": {
"keywords": [],
"children": [],
"node_id": "python-5-51"
}
},
{
"Alex Martelli的水禽": {
"keywords": [],
"children": [],
"node_id": "python-5-52"
}
},
{
"定义抽象基类的子类": {
"keywords": [],
"children": [],
"node_id": "python-5-53"
}
},
{
"标准库中的抽象基类": {
"keywords": [],
"children": [],
"node_id": "python-5-54"
}
},
{
"定义并使用一个抽象基类": {
"keywords": [],
"children": [],
"node_id": "python-5-55"
}
},
{
"Tombola子类的测试方法": {
"keywords": [],
"children": [],
"node_id": "python-5-56"
}
},
{
"Python使用register的方式": {
"keywords": [],
"children": [],
"node_id": "python-5-57"
}
},
{
"鹅的行为有可能像鸭子": {
"keywords": [],
"children": [],
"node_id": "python-5-58"
}
}
],
"node_id": "python-4-92"
}
},
{
"抽象基类": {
"keywords": [],
"children": [],
"node_id": "python-4-93"
}
},
{
"导入类": {
"keywords": [],
"children": [
{
"导入单个类": {
"keywords": [],
"children": [],
"node_id": "python-5-59"
}
},
{
"在一个模块中存储多个类": {
"keywords": [],
"children": [],
"node_id": "python-5-60"
}
},
{
"从一个模块中导入多个类": {
"keywords": [],
"children": [],
"node_id": "python-5-61"
}
},
{
"导入模块中的所有类": {
"keywords": [],
"children": [],
"node_id": "python-5-62"
}
},
{
"自定义工作流程": {
"keywords": [],
"children": [],
"node_id": "python-5-63"
}
}
],
"node_id": "python-4-94"
}
},
{
"Python标准库": {
"keywords": [],
"children": [],
"node_id": "python-4-95"
}
} }
], ],
"node_id": "python-3-10" "node_id": "python-3-10"
......
...@@ -1124,229 +1124,294 @@ ...@@ -1124,229 +1124,294 @@
"keywords": [], "keywords": [],
"children": [ "children": [
{ {
"继承": { "类定义class": {
"keywords": [],
"children": [],
"node_id": "python-4-76"
}
},
{
"作用域和命名空间": {
"keywords": [],
"children": [],
"node_id": "python-4-77"
}
},
{
"对象": {
"keywords": [],
"children": [],
"node_id": "python-4-78"
}
},
{
"属性和方法": {
"keywords": [], "keywords": [],
"children": [ "children": [
{ {
"多重继承": { "模拟数值类型": {
"keywords": [],
"children": [],
"node_id": "python-5-1428"
}
},
{
"方法解析顺序": {
"keywords": [], "keywords": [],
"children": [], "children": [],
"node_id": "python-5-1429" "node_id": "python-5-43"
} }
}, },
{ {
"使用super函数将控制权传递给其他类": { "字符串表示形式": {
"keywords": [], "keywords": [],
"children": [], "children": [],
"node_id": "python-5-1430" "node_id": "python-5-44"
} }
}, },
{ {
"自": { "自定义的布尔值": {
"keywords": [], "keywords": [],
"children": [], "children": [],
"node_id": "python-5-1431" "node_id": "python-5-45"
} }
} }
], ],
"node_id": "python-4-1435" "node_id": "python-4-79"
} }
}, },
{ {
"如何创建类": { "类编码风格": {
"keywords": [],
"children": [],
"node_id": "python-4-80"
}
},
{
"初探类": {
"keywords": [], "keywords": [],
"children": [ "children": [
{ {
"在运行时创建类": { "类定义语法": {
"keywords": [], "keywords": [],
"children": [], "children": [],
"node_id": "python-5-1432" "node_id": "python-5-46"
} }
}, },
{ {
"元类": { "类对象": {
"keywords": [], "keywords": [],
"children": [], "children": [],
"node_id": "python-5-1433" "node_id": "python-5-47"
} }
}, },
{ {
"控制命名空间": { "方法对象": {
"keywords": [], "keywords": [],
"children": [], "children": [],
"node_id": "python-5-1434" "node_id": "python-5-48"
} }
} }
], ],
"node_id": "python-4-1436" "node_id": "python-4-81"
} }
}, },
{ {
"成员变量": { "补充说明": {
"keywords": [],
"children": [],
"node_id": "python-4-82"
}
},
{
"私有变量": {
"keywords": [],
"children": [],
"node_id": "python-4-83"
}
},
{
"生成器表达式": {
"keywords": [],
"children": [],
"node_id": "python-4-84"
}
},
{
"类到底是什么": {
"keywords": [],
"children": [],
"node_id": "python-4-85"
}
},
{
"创建自定义类": {
"keywords": [],
"children": [],
"node_id": "python-4-86"
}
},
{
"再谈隐藏": {
"keywords": [],
"children": [],
"node_id": "python-4-87"
}
},
{
"类的命名空间": {
"keywords": [],
"children": [],
"node_id": "python-4-88"
}
},
{
"指定超类": {
"keywords": [],
"children": [],
"node_id": "python-4-89"
}
},
{
"深入探讨继承": {
"keywords": [],
"children": [],
"node_id": "python-4-90"
}
},
{
"多个超类": {
"keywords": [],
"children": [],
"node_id": "python-4-91"
}
},
{
"接口和内省": {
"keywords": [], "keywords": [],
"children": [ "children": [
{ {
"属性": { "Python文化中的接口和协议": {
"keywords": [], "keywords": [],
"children": [], "children": [],
"node_id": "python-5-1435" "node_id": "python-5-49"
} }
}, },
{ {
"描述器": { "Python喜欢序列": {
"keywords": [], "keywords": [],
"children": [], "children": [],
"node_id": "python-5-1436" "node_id": "python-5-50"
} }
} },
],
"node_id": "python-4-1437"
}
},
{
"方法": {
"keywords": [],
"children": [
{ {
"非绑定方法": { "使用猴子补丁在运行时实现协议": {
"keywords": [], "keywords": [],
"children": [], "children": [],
"node_id": "python-5-1437" "node_id": "python-5-51"
} }
}, },
{ {
"绑定方法": { "Alex Martelli的水禽": {
"keywords": [], "keywords": [],
"children": [], "children": [],
"node_id": "python-5-1438" "node_id": "python-5-52"
}
},
{
"定义抽象基类的子类": {
"keywords": [],
"children": [],
"node_id": "python-5-53"
}
},
{
"标准库中的抽象基类": {
"keywords": [],
"children": [],
"node_id": "python-5-54"
}
},
{
"定义并使用一个抽象基类": {
"keywords": [],
"children": [],
"node_id": "python-5-55"
}
},
{
"Tombola子类的测试方法": {
"keywords": [],
"children": [],
"node_id": "python-5-56"
}
},
{
"Python使用register的方式": {
"keywords": [],
"children": [],
"node_id": "python-5-57"
}
},
{
"鹅的行为有可能像鸭子": {
"keywords": [],
"children": [],
"node_id": "python-5-58"
} }
} }
], ],
"node_id": "python-4-1438" "node_id": "python-4-92"
} }
}, },
{ {
"魔术方法": { "抽象基类": {
"keywords": [],
"children": [],
"node_id": "python-4-93"
}
},
{
"导入类": {
"keywords": [], "keywords": [],
"children": [ "children": [
{ {
"处理成员变量": { "导入单个类": {
"keywords": [], "keywords": [],
"children": [], "children": [],
"node_id": "python-5-1439" "node_id": "python-5-59"
} }
}, },
{ {
"字符串表示": { "在一个模块中存储多个类": {
"keywords": [], "keywords": [],
"children": [ "children": [],
{ "node_id": "python-5-60"
"字节字符串": { }
"keywords": [], },
"children": [ {
{ "从一个模块中导入多个类": {
"借助chr和ord进行简单的转换": { "keywords": [],
"keywords": [], "children": [],
"children": [], "node_id": "python-5-61"
"node_id": "python-7-34" }
} },
}, {
{ "导入模块中的所有类": {
"借助struct模块进行复杂的转换": { "keywords": [],
"keywords": [], "children": [],
"children": [], "node_id": "python-5-62"
"node_id": "python-7-35" }
} },
} {
], "自定义工作流程": {
"node_id": "python-6-225" "keywords": [],
} "children": [],
}, "node_id": "python-5-63"
{
"文本": {
"keywords": [],
"children": [
{
"Unicode": {
"keywords": [],
"children": [],
"node_id": "python-7-36"
}
},
{
"编码": {
"keywords": [],
"children": [],
"node_id": "python-7-37"
}
}
],
"node_id": "python-6-226"
}
},
{
"简单的替换": {
"keywords": [],
"children": [],
"node_id": "python-6-227"
}
},
{
"格式化": {
"keywords": [],
"children": [
{
"在对象中查找值": {
"keywords": [],
"children": [],
"node_id": "python-7-38"
}
},
{
"区分字符串类型": {
"keywords": [],
"children": [],
"node_id": "python-7-39"
}
},
{
"标准格式规范": {
"keywords": [],
"children": [],
"node_id": "python-7-40"
}
},
{
"为文本文档制作目录": {
"keywords": [],
"children": [],
"node_id": "python-7-41"
}
},
{
"自定义格式规范": {
"keywords": [],
"children": [],
"node_id": "python-7-42"
}
}
],
"node_id": "python-6-228"
}
}
],
"node_id": "python-5-1440"
} }
} }
], ],
"node_id": "python-4-1439" "node_id": "python-4-94"
}
},
{
"Python标准库": {
"keywords": [],
"children": [],
"node_id": "python-4-95"
} }
} }
] ]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册