Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
CSDN 技术社区
skill_tree_python
提交
a39e6280
S
skill_tree_python
项目概览
CSDN 技术社区
/
skill_tree_python
通知
66
Star
14
Fork
6
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
skill_tree_python
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
“51de2ded3ecf674bd5f96a9f3129d6630bfb65a1”上不存在“python/git@gitcode.net:BaiXuePrincess/Paddle.git”
提交
a39e6280
编写于
11月 09, 2021
作者:
F
feilong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix bug
上级
cb7a1c07
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
271 addition
and
54 deletion
+271
-54
data/1.python初阶/2.基础语法/3.函数/config.json
data/1.python初阶/2.基础语法/3.函数/config.json
+271
-54
未找到文件。
data/1.python初阶/2.基础语法/3.函数/config.json
浏览文件 @
a39e6280
...
...
@@ -10,183 +10,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-141
9"
"node_id"
:
"python-4-4
9"
}
},
{
"包装器"
:
{
"局部和全局作用域"
:
{
"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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录