提交 b8a05139 编写于 作者: F feilong

fix python bug

上级 a39e6280
......@@ -719,183 +719,400 @@
"keywords": [],
"children": [
{
"参数": {
"函数定义def": {
"keywords": [],
"children": [
"children": [],
"node_id": "python-4-38"
}
},
{
"规划时的灵活性": {
"参数var": {
"keywords": [],
"children": [],
"node_id": "python-5-1412"
"node_id": "python-4-39"
}
},
{
"可变位置参数": {
"返回值return": {
"keywords": [],
"children": [],
"node_id": "python-5-1413"
"node_id": "python-4-40"
}
},
{
"可变关键字参数": {
"参数传递": {
"keywords": [],
"children": [],
"node_id": "python-5-1414"
"node_id": "python-4-41"
}
},
{
"组合不同类型的参数": {
"函数调用": {
"keywords": [],
"children": [],
"node_id": "python-5-1415"
"node_id": "python-4-42"
}
},
{
"调用具有可变参数的函数": {
"函数递归": {
"keywords": [],
"children": [],
"node_id": "python-5-1416"
"node_id": "python-4-43"
}
},
{
"传递参数": {
"函数编写风格": {
"keywords": [],
"children": [],
"node_id": "python-5-1417"
"node_id": "python-4-44"
}
},
{
"自省": {
"调用函数": {
"keywords": [],
"children": [],
"node_id": "python-5-1418"
"node_id": "python-4-45"
}
},
{
"函数的参数": {
"keywords": [],
"children": [],
"node_id": "python-4-46"
}
],
"node_id": "python-4-1429"
},
{
"递归函数": {
"keywords": [],
"children": [],
"node_id": "python-4-47"
}
},
{
"装饰器": {
"None值": {
"keywords": [],
"children": [
"children": [],
"node_id": "python-4-48"
}
},
{
"闭包": {
"调用栈": {
"keywords": [],
"children": [],
"node_id": "python-5-1419"
"node_id": "python-4-49"
}
},
{
"包装器": {
"局部和全局作用域": {
"keywords": [],
"children": [
{
"局部变量不能在全局作用域内使用": {
"keywords": [],
"children": [],
"node_id": "python-5-1420"
"node_id": "python-5-25"
}
},
{
"带参数的装饰器": {
"局部作用域不能使用其他局部作用域内的变量": {
"keywords": [],
"children": [],
"node_id": "python-5-1421"
"node_id": "python-5-26"
}
},
{
"带参数或不带参数的装饰器": {
"全局变量可以在局部作用域中读取": {
"keywords": [],
"children": [],
"node_id": "python-5-1422"
"node_id": "python-5-27"
}
}
],
"node_id": "python-4-1430"
"node_id": "python-4-50"
}
},
{
"函数注解": {
"异常处理": {
"keywords": [],
"children": [],
"node_id": "python-4-51"
}
},
{
"把函数视作对象": {
"keywords": [],
"children": [],
"node_id": "python-4-52"
}
},
{
"可调用对象": {
"keywords": [],
"children": [],
"node_id": "python-4-53"
}
},
{
"用户定义的可调用类型": {
"keywords": [],
"children": [],
"node_id": "python-4-54"
}
},
{
"函数内省": {
"keywords": [],
"children": [],
"node_id": "python-4-55"
}
},
{
"从定位参数到仅限关键字参数": {
"keywords": [],
"children": [],
"node_id": "python-4-56"
}
},
{
"获取关于参数的信息": {
"keywords": [],
"children": [],
"node_id": "python-4-57"
}
},
{
"支持函数式编程的包": {
"keywords": [],
"children": [],
"node_id": "python-4-58"
}
},
{
"传递实参": {
"keywords": [],
"children": [
{
"提取样板": {
"位置实参": {
"keywords": [],
"children": [],
"node_id": "python-5-1423"
"node_id": "python-5-28"
}
},
{
"用装饰器进行注解": {
"关键字实参": {
"keywords": [],
"children": [],
"node_id": "python-5-1424"
"node_id": "python-5-29"
}
},
{
"默认值": {
"keywords": [],
"children": [],
"node_id": "python-5-30"
}
},
{
"等效的函数调用": {
"keywords": [],
"children": [],
"node_id": "python-5-31"
}
},
{
"避免实参错误": {
"keywords": [],
"children": [],
"node_id": "python-5-32"
}
}
],
"node_id": "python-4-1431"
"node_id": "python-4-59"
}
},
{
"生成器": {
"返回值": {
"keywords": [],
"children": [
{
"返回简单值": {
"keywords": [],
"children": [],
"node_id": "python-4-1432"
"node_id": "python-5-33"
}
},
{
"lambda": {
"让实参变成可选的": {
"keywords": [],
"children": [],
"node_id": "python-4-1433"
"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-1425"
"node_id": "python-5-36"
}
},
{
"模块和软件包": {
"禁止函数修改列表": {
"keywords": [],
"children": [],
"node_id": "python-5-1426"
"node_id": "python-5-37"
}
}
],
"node_id": "python-4-61"
}
},
{
"文档字符串": {
"传递任意数量的实参": {
"keywords": [],
"children": [
{
"描述函数的作用": {
"使用任意数量的关键字实参": {
"keywords": [],
"children": [],
"node_id": "python-6-222"
"node_id": "python-5-38"
}
},
{
"返回值": {
"导入特定的函数": {
"keywords": [],
"children": [],
"node_id": "python-6-223"
"node_id": "python-5-39"
}
},
{
"包含预期的异常": {
"使用as给函数指定别名": {
"keywords": [],
"children": [],
"node_id": "python-6-224"
"node_id": "python-5-40"
}
},
{
"使用as给模块指定别名": {
"keywords": [],
"children": [],
"node_id": "python-5-41"
}
],
"node_id": "python-5-1427"
},
{
"导入模块中的所有函数": {
"keywords": [],
"children": [],
"node_id": "python-5-42"
}
}
],
"node_id": "python-4-1434"
"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"
}
}
]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册