PROBLEM SET
高阶函数
按知识点筛选题目,系统巩固该考点。
题目列表
共 2 题
A26828
执行下面Python代码后,输出的结果是?( )def apply(func, x): return func(x) def square(n): return n * n result = apply(square, 4) print(result)
Python-L4
较难
--
A26862
有关下列Python代码的说法,错误的是( )。#自定义函数SORTED()仿Python的sorted()功能 def SORTED(for_in_data, fx = None, Reverse = False): lst = list(for_in_data) if fx == None: lst.sort(reverse = Reverse) else: lst.sort(key = l…
Python-L5
困难
--