下列语句的运行结果是:()f1 = lambda x: x * 2f2 = lambda x: x ** 2print(f1(f2(2)))
查看答案
设有 f=lambda x,y:{x:y},则 f(5,10) 的值是:_________________
两个键值对<"a",1>和<"a",1>,如果对其进行归并(merge),会得到<"a",2>,如果对其进行合并(combine),会得到<"a",<1,1>>
A. 对
B. 错
Mapreduce 的 input split 就是一个 block。
A. 对
B. 错
在使用MapReduce程序WordCount进行词频统计时,对于文本行“hello master bye master”,经过WordCount程序的Map函数处理后直接输出的中间结果,应该是下面哪种形式:
A. <"hello",1>、<"master",1>、<"bye",1>和<"master",1>
B. <"hello",1>、<"master",2>和<"bye",1>
C. <"master",1,1>、<"hello",1>和<"bye",1>
D. <"master",<1,1>>、<"hello",1>和<"bye",1>