{ "export": [ "helloworld2.json", "fact1.json", "fact2.json", "fibonacci1.json", "fibonacci2.json", "call.json" ], "keywords": [], "children": [ { "函数定义def": { "keywords": [], "children": [], "node_id": "python-4-38", "keywords_must": [], "keywords_forbid": [] } }, { "参数var": { "keywords": [], "children": [], "node_id": "python-4-39", "keywords_must": [], "keywords_forbid": [] } }, { "返回值return": { "keywords": [], "children": [], "node_id": "python-4-40", "keywords_must": [], "keywords_forbid": [] } }, { "参数传递": { "keywords": [], "children": [], "node_id": "python-4-41", "keywords_must": [], "keywords_forbid": [] } }, { "函数调用": { "keywords": [], "children": [], "node_id": "python-4-42", "keywords_must": [], "keywords_forbid": [] } }, { "函数递归": { "keywords": [], "children": [], "node_id": "python-4-43", "keywords_must": [], "keywords_forbid": [] } }, { "函数编写风格": { "keywords": [], "children": [], "node_id": "python-4-44", "keywords_must": [], "keywords_forbid": [] } }, { "调用函数": { "keywords": [], "children": [], "node_id": "python-4-45", "keywords_must": [], "keywords_forbid": [] } }, { "函数的参数": { "keywords": [], "children": [], "node_id": "python-4-46", "keywords_must": [], "keywords_forbid": [] } }, { "递归函数": { "keywords": [], "children": [], "node_id": "python-4-47", "keywords_must": [], "keywords_forbid": [] } }, { "None值": { "keywords": [], "children": [], "node_id": "python-4-48", "keywords_must": [], "keywords_forbid": [] } }, { "调用栈": { "keywords": [], "children": [], "node_id": "python-4-49", "keywords_must": [], "keywords_forbid": [] } }, { "局部和全局作用域": { "keywords": [], "children": [ { "局部变量不能在全局作用域内使用": { "keywords": [], "children": [], "node_id": "python-5-25", "keywords_must": [], "keywords_forbid": [] } }, { "局部作用域不能使用其他局部作用域内的变量": { "keywords": [], "children": [], "node_id": "python-5-26", "keywords_must": [], "keywords_forbid": [] } }, { "全局变量可以在局部作用域中读取": { "keywords": [], "children": [], "node_id": "python-5-27", "keywords_must": [], "keywords_forbid": [] } } ], "node_id": "python-4-50", "keywords_must": [], "keywords_forbid": [] } }, { "异常处理": { "keywords": [], "children": [], "node_id": "python-4-51", "keywords_must": [], "keywords_forbid": [] } }, { "把函数视作对象": { "keywords": [], "children": [], "node_id": "python-4-52", "keywords_must": [], "keywords_forbid": [] } }, { "可调用对象": { "keywords": [], "children": [], "node_id": "python-4-53", "keywords_must": [], "keywords_forbid": [] } }, { "用户定义的可调用类型": { "keywords": [], "children": [], "node_id": "python-4-54", "keywords_must": [], "keywords_forbid": [] } }, { "函数内省": { "keywords": [], "children": [], "node_id": "python-4-55", "keywords_must": [], "keywords_forbid": [] } }, { "从定位参数到仅限关键字参数": { "keywords": [], "children": [], "node_id": "python-4-56", "keywords_must": [], "keywords_forbid": [] } }, { "获取关于参数的信息": { "keywords": [], "children": [], "node_id": "python-4-57", "keywords_must": [], "keywords_forbid": [] } }, { "支持函数式编程的包": { "keywords": [], "children": [], "node_id": "python-4-58", "keywords_must": [], "keywords_forbid": [] } }, { "传递实参": { "keywords": [], "children": [ { "位置实参": { "keywords": [], "children": [], "node_id": "python-5-28", "keywords_must": [], "keywords_forbid": [] } }, { "关键字实参": { "keywords": [], "children": [], "node_id": "python-5-29", "keywords_must": [], "keywords_forbid": [] } }, { "默认值": { "keywords": [], "children": [], "node_id": "python-5-30", "keywords_must": [], "keywords_forbid": [] } }, { "等效的函数调用": { "keywords": [], "children": [], "node_id": "python-5-31", "keywords_must": [], "keywords_forbid": [] } }, { "避免实参错误": { "keywords": [], "children": [], "node_id": "python-5-32", "keywords_must": [], "keywords_forbid": [] } } ], "node_id": "python-4-59", "keywords_must": [], "keywords_forbid": [] } }, { "返回值": { "keywords": [], "children": [ { "返回简单值": { "keywords": [], "children": [], "node_id": "python-5-33", "keywords_must": [], "keywords_forbid": [] } }, { "让实参变成可选的": { "keywords": [], "children": [], "node_id": "python-5-34", "keywords_must": [], "keywords_forbid": [] } }, { "返回字典": { "keywords": [], "children": [], "node_id": "python-5-35", "keywords_must": [], "keywords_forbid": [] } } ], "node_id": "python-4-60", "keywords_must": [], "keywords_forbid": [] } }, { "传递列表": { "keywords": [], "children": [ { "在函数中修改列表": { "keywords": [], "children": [], "node_id": "python-5-36", "keywords_must": [], "keywords_forbid": [] } }, { "禁止函数修改列表": { "keywords": [], "children": [], "node_id": "python-5-37", "keywords_must": [], "keywords_forbid": [] } } ], "node_id": "python-4-61", "keywords_must": [], "keywords_forbid": [] } }, { "传递任意数量的实参": { "keywords": [], "children": [ { "使用任意数量的关键字实参": { "keywords": [], "children": [], "node_id": "python-5-38", "keywords_must": [], "keywords_forbid": [] } }, { "导入特定的函数": { "keywords": [], "children": [], "node_id": "python-5-39", "keywords_must": [], "keywords_forbid": [] } }, { "使用as给函数指定别名": { "keywords": [], "children": [], "node_id": "python-5-40", "keywords_must": [], "keywords_forbid": [] } }, { "使用as给模块指定别名": { "keywords": [], "children": [], "node_id": "python-5-41", "keywords_must": [], "keywords_forbid": [] } }, { "导入模块中的所有函数": { "keywords": [], "children": [], "node_id": "python-5-42", "keywords_must": [], "keywords_forbid": [] } } ], "node_id": "python-4-62", "keywords_must": [], "keywords_forbid": [] } }, { "函数编写指南": { "keywords": [], "children": [], "node_id": "python-4-63", "keywords_must": [], "keywords_forbid": [] } }, { "编写可接受任意数量参数的函数": { "keywords": [], "children": [], "node_id": "python-4-64", "keywords_must": [], "keywords_forbid": [] } }, { "编写只接受关键字参数的函数": { "keywords": [], "children": [], "node_id": "python-4-65", "keywords_must": [], "keywords_forbid": [] } }, { "将元数据信息附加到函数参数上": { "keywords": [], "children": [], "node_id": "python-4-66", "keywords_must": [], "keywords_forbid": [] } }, { "从函数中返回多个值": { "keywords": [], "children": [], "node_id": "python-4-67", "keywords_must": [], "keywords_forbid": [] } }, { "定义带有默认参数的函数": { "keywords": [], "children": [], "node_id": "python-4-68", "keywords_must": [], "keywords_forbid": [] } }, { "定义匿名或内联函数": { "keywords": [], "children": [], "node_id": "python-4-69", "keywords_must": [], "keywords_forbid": [] } }, { "在匿名函数中绑定变量的值": { "keywords": [], "children": [], "node_id": "python-4-70", "keywords_must": [], "keywords_forbid": [] } }, { "让带有N个参数的可调用对象以较少的参数形式调用": { "keywords": [], "children": [], "node_id": "python-4-71", "keywords_must": [], "keywords_forbid": [] } }, { "用函数替代只有单个方法的类": { "keywords": [], "children": [], "node_id": "python-4-72", "keywords_must": [], "keywords_forbid": [] } }, { "在回调函数中携带额外的状态": { "keywords": [], "children": [], "node_id": "python-4-73", "keywords_must": [], "keywords_forbid": [] } }, { "内联回调函数": { "keywords": [], "children": [], "node_id": "python-4-74", "keywords_must": [], "keywords_forbid": [] } }, { "访问定义在闭包内的变量": { "keywords": [], "children": [], "node_id": "python-4-75", "keywords_must": [], "keywords_forbid": [] } } ], "node_id": "python-3-9", "keywords_must": [], "keywords_forbid": [] }