{ "export": [ "helloworld2.json", "fact1.json", "fact2.json", "fibonacci1.json", "fibonacci2.json", "call.json" ], "keywords": [], "children": [ { "函数定义def": { "keywords": [], "children": [], "node_id": "python-4-38" } }, { "参数var": { "keywords": [], "children": [], "node_id": "python-4-39" } }, { "返回值return": { "keywords": [], "children": [], "node_id": "python-4-40" } }, { "参数传递": { "keywords": [], "children": [], "node_id": "python-4-41" } }, { "函数调用": { "keywords": [], "children": [], "node_id": "python-4-42" } }, { "函数递归": { "keywords": [], "children": [], "node_id": "python-4-43" } }, { "函数编写风格": { "keywords": [], "children": [], "node_id": "python-4-44" } }, { "调用函数": { "keywords": [], "children": [], "node_id": "python-4-45" } }, { "函数的参数": { "keywords": [], "children": [], "node_id": "python-4-46" } }, { "递归函数": { "keywords": [], "children": [], "node_id": "python-4-47" } }, { "None值": { "keywords": [], "children": [], "node_id": "python-4-48" } }, { "调用栈": { "keywords": [], "children": [], "node_id": "python-4-49" } }, { "局部和全局作用域": { "keywords": [], "children": [ { "局部变量不能在全局作用域内使用": { "keywords": [], "children": [], "node_id": "python-5-25" } }, { "局部作用域不能使用其他局部作用域内的变量": { "keywords": [], "children": [], "node_id": "python-5-26" } }, { "全局变量可以在局部作用域中读取": { "keywords": [], "children": [], "node_id": "python-5-27" } } ], "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-28" } }, { "关键字实参": { "keywords": [], "children": [], "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-59" } }, { "返回值": { "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" }