随便学学Python-day11-高阶函数
day11 高阶函数高阶函数1.函数就是变量python中定义函数就是定义类型是function的变量,函数名就是变量名变量能做的事情,函数都能做a = 10d = 'abc'e = [10, 20, 30]b = lambda x: x*2# def b(x):# return x*2c = {'a': 10, 'b': 100}print(type(a), type(b), type(c))x = 100def func1(): print('我是一个函数')
原创
2020-12-22 19:14:19 ·
124 阅读 ·
0 评论