提交 a39e6280 编写于 作者: F feilong

fix bug

上级 cb7a1c07
...@@ -10,184 +10,401 @@ ...@@ -10,184 +10,401 @@
"keywords": [], "keywords": [],
"children": [ "children": [
{ {
"参数": { "函数定义def": {
"keywords": [], "keywords": [],
"children": [ "children": [],
{ "node_id": "python-4-38"
"规划时的灵活性": { }
"keywords": [], },
"children": [], {
"node_id": "python-5-1412" "参数var": {
} "keywords": [],
}, "children": [],
{ "node_id": "python-4-39"
"可变位置参数": { }
"keywords": [], },
"children": [], {
"node_id": "python-5-1413" "返回值return": {
} "keywords": [],
}, "children": [],
{ "node_id": "python-4-40"
"可变关键字参数": { }
"keywords": [], },
"children": [], {
"node_id": "python-5-1414" "参数传递": {
} "keywords": [],
}, "children": [],
{ "node_id": "python-4-41"
"组合不同类型的参数": { }
"keywords": [], },
"children": [], {
"node_id": "python-5-1415" "函数调用": {
} "keywords": [],
}, "children": [],
{ "node_id": "python-4-42"
"调用具有可变参数的函数": { }
"keywords": [], },
"children": [], {
"node_id": "python-5-1416" "函数递归": {
} "keywords": [],
}, "children": [],
{ "node_id": "python-4-43"
"传递参数": { }
"keywords": [], },
"children": [], {
"node_id": "python-5-1417" "函数编写风格": {
} "keywords": [],
}, "children": [],
{ "node_id": "python-4-44"
"自省": { }
"keywords": [], },
"children": [], {
"node_id": "python-5-1418" "调用函数": {
} "keywords": [],
} "children": [],
], "node_id": "python-4-45"
"node_id": "python-4-1429" }
} },
}, {
{ "函数的参数": {
"装饰器": { "keywords": [],
"keywords": [], "children": [],
"children": [ "node_id": "python-4-46"
{ }
"闭包": { },
"keywords": [], {
"children": [], "递归函数": {
"node_id": "python-5-1419" "keywords": [],
} "children": [],
}, "node_id": "python-4-47"
{ }
"包装器": { },
"keywords": [], {
"children": [], "None值": {
"node_id": "python-5-1420" "keywords": [],
} "children": [],
}, "node_id": "python-4-48"
{ }
"带参数的装饰器": { },
"keywords": [], {
"children": [], "调用栈": {
"node_id": "python-5-1421" "keywords": [],
} "children": [],
}, "node_id": "python-4-49"
{ }
"带参数或不带参数的装饰器": { },
"keywords": [], {
"children": [], "局部和全局作用域": {
"node_id": "python-5-1422" "keywords": [],
} "children": [
} {
], "局部变量不能在全局作用域内使用": {
"node_id": "python-4-1430" "keywords": [],
} "children": [],
}, "node_id": "python-5-25"
{ }
"函数注解": { },
"keywords": [], {
"children": [ "局部作用域不能使用其他局部作用域内的变量": {
{ "keywords": [],
"提取样板": { "children": [],
"keywords": [], "node_id": "python-5-26"
"children": [], }
"node_id": "python-5-1423" },
} {
}, "全局变量可以在局部作用域中读取": {
{ "keywords": [],
"用装饰器进行注解": { "children": [],
"keywords": [], "node_id": "python-5-27"
"children": [], }
"node_id": "python-5-1424" }
} ],
} "node_id": "python-4-50"
], }
"node_id": "python-4-1431" },
} {
}, "异常处理": {
{ "keywords": [],
"生成器": { "children": [],
"keywords": [], "node_id": "python-4-51"
"children": [], }
"node_id": "python-4-1432" },
} {
}, "把函数视作对象": {
{ "keywords": [],
"lambda": { "children": [],
"keywords": [], "node_id": "python-4-52"
"children": [], }
"node_id": "python-4-1433" },
} {
}, "可调用对象": {
{ "keywords": [],
"自省": { "children": [],
"keywords": [], "node_id": "python-4-53"
"children": [ }
{ },
"标识对象类型": { {
"keywords": [], "用户定义的可调用类型": {
"children": [], "keywords": [],
"node_id": "python-5-1425" "children": [],
} "node_id": "python-4-54"
}, }
{ },
"模块和软件包": { {
"keywords": [], "函数内省": {
"children": [], "keywords": [],
"node_id": "python-5-1426" "children": [],
} "node_id": "python-4-55"
}, }
{ },
"文档字符串": { {
"keywords": [], "从定位参数到仅限关键字参数": {
"children": [ "keywords": [],
{ "children": [],
"描述函数的作用": { "node_id": "python-4-56"
"keywords": [], }
"children": [], },
"node_id": "python-6-222" {
} "获取关于参数的信息": {
"keywords": [],
"children": [],
"node_id": "python-4-57"
}
},
{
"支持函数式编程的包": {
"keywords": [],
"children": [],
"node_id": "python-4-58"
}
},
{
"传递实参": {
"keywords": [],
"children": [
{
"位置实参": {
"keywords": [],
"children": [],
"node_id": "python-5-28"
}
},
{
"关键字实参": {
"keywords": [],
"children": [],
"node_id": "python-5-29"
}
},
{
"默认值": {
"keywords": [],
"children": [],
"node_id": "python-5-30"
}
}, },
{ {
"返回值": { "等效的函数调用": {
"keywords": [], "keywords": [],
"children": [], "children": [],
"node_id": "python-6-223" "node_id": "python-5-31"
} }
}, },
{ {
"包含预期的异常": { "避免实参错误": {
"keywords": [], "keywords": [],
"children": [], "children": [],
"node_id": "python-6-224" "node_id": "python-5-32"
} }
} }
], ],
"node_id": "python-5-1427" "node_id": "python-4-59"
} }
} },
], {
"node_id": "python-4-1434" "返回值": {
} "keywords": [],
"children": [
{
"返回简单值": {
"keywords": [],
"children": [],
"node_id": "python-5-33"
}
},
{
"让实参变成可选的": {
"keywords": [],
"children": [],
"node_id": "python-5-34"
}
},
{
"返回字典": {
"keywords": [],
"children": [],
"node_id": "python-5-35"
}
}
],
"node_id": "python-4-60"
}
},
{
"传递列表": {
"keywords": [],
"children": [
{
"在函数中修改列表": {
"keywords": [],
"children": [],
"node_id": "python-5-36"
}
},
{
"禁止函数修改列表": {
"keywords": [],
"children": [],
"node_id": "python-5-37"
}
}
],
"node_id": "python-4-61"
}
},
{
"传递任意数量的实参": {
"keywords": [],
"children": [
{
"使用任意数量的关键字实参": {
"keywords": [],
"children": [],
"node_id": "python-5-38"
}
},
{
"导入特定的函数": {
"keywords": [],
"children": [],
"node_id": "python-5-39"
}
},
{
"使用as给函数指定别名": {
"keywords": [],
"children": [],
"node_id": "python-5-40"
}
},
{
"使用as给模块指定别名": {
"keywords": [],
"children": [],
"node_id": "python-5-41"
}
},
{
"导入模块中的所有函数": {
"keywords": [],
"children": [],
"node_id": "python-5-42"
}
}
],
"node_id": "python-4-62"
}
},
{
"函数编写指南": {
"keywords": [],
"children": [],
"node_id": "python-4-63"
}
},
{
"编写可接受任意数量参数的函数": {
"keywords": [],
"children": [],
"node_id": "python-4-64"
}
},
{
"编写只接受关键字参数的函数": {
"keywords": [],
"children": [],
"node_id": "python-4-65"
}
},
{
"将元数据信息附加到函数参数上": {
"keywords": [],
"children": [],
"node_id": "python-4-66"
}
},
{
"从函数中返回多个值": {
"keywords": [],
"children": [],
"node_id": "python-4-67"
}
},
{
"定义带有默认参数的函数": {
"keywords": [],
"children": [],
"node_id": "python-4-68"
}
},
{
"定义匿名或内联函数": {
"keywords": [],
"children": [],
"node_id": "python-4-69"
}
},
{
"在匿名函数中绑定变量的值": {
"keywords": [],
"children": [],
"node_id": "python-4-70"
}
},
{
"让带有N个参数的可调用对象以较少的参数形式调用": {
"keywords": [],
"children": [],
"node_id": "python-4-71"
}
},
{
"用函数替代只有单个方法的类": {
"keywords": [],
"children": [],
"node_id": "python-4-72"
}
},
{
"在回调函数中携带额外的状态": {
"keywords": [],
"children": [],
"node_id": "python-4-73"
}
},
{
"内联回调函数": {
"keywords": [],
"children": [],
"node_id": "python-4-74"
}
},
{
"访问定义在闭包内的变量": {
"keywords": [],
"children": [],
"node_id": "python-4-75"
}
} }
], ],
"node_id": "python-3-9" "node_id": "python-3-9"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册