摘要:
内置函数 注:查看详细https://docs.python.org/3/library/functions.html#next 匿名函数 高阶函数 满足任意一个条件: 1、函数的传入参数是一个函数名 2、函数的返回值是一个函数名 1 num_l = [1, 2, 3, 4, 5, 6] 2 # l 阅读全文
posted @ 2019-07-15 18:26
MC_Hotdog
阅读(254)
评论(0)
推荐(0)
摘要:
函数 函数:实现某种功能(数学形式、python def函数式编程) 过程:就是函数没有返回值 参数 1、形参 实参 位置参数 关键字参数 默认参数 2、参数组 *args(列表) **kwargs (字典) 1 def test(x, *args, **kwargs): 2 print(x) 3 阅读全文
posted @ 2019-07-15 13:06
MC_Hotdog
阅读(300)
评论(0)
推荐(0)
浙公网安备 33010602011771号