【填空题】
285、 假设已从标准库functools导入reduce___ 的值为__。___
查看试卷,进入试卷练习
微信扫一扫,开始刷题
)函数,那么表达式 reduce(lambda x, y: x+y, [1, 2, 3]|6
相关试题
【填空题】
286、 已知有函数定义 def demo___:return sum___,那么表达式 demo___ 的值为_、表达式 demo___ 的值为____。___
【填空题】
287、 已知列表 x = [1, 2],那么连续执行命令 y = x和 y.append___ 之后,x的值为__。___
【填空题】
288、 已知列表 x = [1, 2],那么连续执行命令 y = x[:] 和 y.append___ 之后,x的值为__。___
【填空题】
289、 已知列表 x = [1, 2],执行语句 y = x[:] 后,表达式 id___ == id___ 的值为_。___
【填空题】
290、 已知列表 x = [1, 2],执行语句 y = x 后,表达式 id___ == id___ 的值为_。___
【填空题】
291、 已知列表 x = [1, 2],执行语句 y = x 后,表达式 x is y 的值为_。___
【填空题】
292、 已知列表 x = [1, 2],执行语句 y = x[:] 后,表达式 x is not y 的值为_。___
【填空题】
293、 表达式 sorted___, 5)) 的值为_______________。___
【填空题】
294、 表达式 [i for i in range___ if i>8] 的值为______。___
【填空题】
295、 已知有列表 x = [[1, 2, 3], [4, 5, 6]],那么表达式 [[row[i] for row in x] for i in range___)] 的值为_________________。___
【填空题】
296、 执行语句 x,y,z = map___) 之后,变量y的值为_。___
【填空题】
297、 已知列表 x = [1, 2],那么执行语句 x.extend___ 之后, x的值为__。___
【填空题】
298、 已知列表 x = [1, 2],那么执行语句 x.append___ 之后,x的值为___。___
【填空题】
299、 表达式 ‘aaasdf’.lstrip___ 的值为______。___
【填空题】
300、 表达式 ‘aaasdf’.lstrip___ 的值为______。___
【填空题】
301、 表达式 ‘aaasdf’.strip___ 的值为____。___
【填空题】
302、 表达式 ‘aaasdf’.rstrip___ 的值为_____。___
【填空题】
303、 已知 f = lambda x: x+5,那么表达式 f___ 的值为__。___
【填空题】
304、 表达式 print___ 的值为__。___
【填空题】
305、 表达式 ‘\x41’ == ‘A’ 的值为___。___
【填空题】
306、 已知 x = [1, 2, 3, 4, 5],那么执行语句 del x[:3] 之后,x的值为____。___
【填空题】
307、 表达式 sorted___) 的值为___。___
【填空题】
308、 已知 x = range___ 和 y = range___,那么表达式 sum___]) 的值为____。___
【填空题】
309、 表达式 [5 for i in range___] 的值为_____。___
【填空题】
310、 表达式 {1, 2, 3} == {1, 3, 2} 的值为_。___
【填空题】
311、 表达式 [1, 2, 3] == [1, 3, 2] 的值为__。___
【填空题】
312、 已知 x = [1, 2, 1],那么表达式 id___ == id___ 的值为_____。___
【填空题】
313、 表达式 3 not in [1, 2, 3]的值为____。___
【填空题】
314、 已知 x = [1, 2],那么执行语句 x[0:0] = [3, 3]之后,x的值为_。___
【填空题】
315、 已知 x = [1, 2],那么执行语句 x[0:1] = [3, 3]之后,x的值为_。___
【填空题】
316、 已知 x = [1, 2, 3, 4, 5],那么执行语句 del x[1:3] 之后,x的值为__。___
【填空题】
317、 已知 x = [[1, 2, 3,], [4, 5, 6]],那么表达式 sum___]) 的值为__。___
【填空题】
318、 已知列表 x = [1, 2, 3] 和 y = [4, 5, 6],那么表达式 [___ for i, j in zip___ if i==3] 的值为__。___])
【填空题】
319、 已知列表 x = [1.0, 2.0, 3.0],那么表达式 sum___/len___ 的值为_。___
【填空题】
320、 表达式 ‘abc’ in ___ 的值为____。___
【填空题】
321、 表达式 ‘abc’ in [‘abcdefg’] 的值为____。___
【填空题】
322、 已知 x = {1:2, 2:3, 3:4},那么表达式 sum___ 的值为_。___
【填空题】
323、 已知 x = {1:2, 2:3, 3:4},那么表达式 sum___) 的值为___。___
【填空题】
324、 已知 x = [3, 2, 3, 3, 4],那么表达式 [index for index, value in enumerate___ if value==3] 的值为__。___
【填空题】
325、 表达式 1234%1000//100 的值为_。___
推荐试题
【单选题】
The company has launched a campaign of television ___ and leaflets.
A. commercials
B. commences
C. commerce
D. commercialization
【单选题】
The general secretary may ___ the president at official ceremonies.
A. present
B. represent
C. representative
D. stand
【单选题】
He ___ her arms behind her back and clipped a pair of handcuffs on her wrists.
A. dragged
B. pulled
C. stretched
D. twisted
【单选题】
Suppose that when I come back in ten years’ time all these old houses ___ down.
A. will have been pulled
B. will have pulled
C. will be pulling
D. will be pulled
【单选题】
The picture exhibition bored me to death. I wish I ___ to it.
A. have not gone
B. did not go
C. had not gone
D. should not have gone
【单选题】
An investigation was made into the accident ___ fifty people were killed.
A. for that
B. where
C. when
D. in which
【单选题】
___ with the picture, Mary tore it to pieces.
A. Dissatisfying thoroughly
B. Being thoroughly dissatisfied
C. To dissatisfy thoroughly
D. To be thoroughly dissatisfied
【单选题】
She was so angry that she felt like ___ something at him.
A. to throw
B. to have thrown
C. throwing
D. having thrown
【单选题】
If you want to know the train schedule, please ___ at the booking office.
A. acquire
B. inquire
C. request
D. require
【单选题】
My brother’s plans are very ___; he wants to master English, French and Spanish before he is sixteen.
A. arbitrary
B. aggressive
C. ambitious
D. abundant
【单选题】
Housewives who do not go out to work often feel they are not working to their full ___.
A. capacity
B. strength
C. length
D. possibility
【单选题】
Water and air are ___ to human beings. We cannot live without them.
A. harbor
B. function
C. definite
D. essential
【单选题】
Our challenge is to ___ those voters and inspire them to join our cause.
A. motion
B. motive
C. motivate
D. motivation
【单选题】
Harper was a teacher by ___.
A. career
B. occupation
C. profession
D. vocation
【单选题】
The doctor gave me a chest X-ray and ___some medicine for me.
A. prescribed
B. floated
C. drugged
D. drifted
【单选题】
The list is arranged according to the ___ professions of the audience.
A. resolution
B. responsible
C. resource
D. respective
【单选题】
The government is trying to do something to ___ better understanding between the two countries.
A. raise
B. promote
C. heighten
D. increase
【单选题】
According to the American federal government, residents of Hawaii have the longest life ___ : 77.2 years.
A. rank
B. span
C. scale
D. scope
【单选题】
Because of the boring ___, we need to take a vacation every year.
A. routine
B. surgery
C. rifle
D. sake
【单选题】
The manager spoke highly of such ___ as loyalty, courage and truthfulness shown by his employees.
A. virtues
B. features
C. properties
D. characteristics
【单选题】
Throughout his life, Henry Moore ___ an interest in encouraging art in the city of Leeds.
A. contained
B. secured
C. reserved
D. maintained
【单选题】
The new trade agreement should ___ more rapid economic growth.
A. facilitate
B. help
C. assist
D. speed
【单选题】
The new plan is ___ and everybody present agrees with it.
A. appendix
B. adventurous
C. feasible
D. impractical
【单选题】
A peculiarly pointed chin is his most memorable facial ___.
A. mark
B. feature
C. trace
D. appearance
【单选题】
The plant ___particularly well in slightly harsher climes.
A. succeeds
B. shows
C. flourishes
D. fosters
【单选题】
This company provides a very good ___service for its products.
A. maintenance
B. merit B. philosophy D. pigeon
【单选题】
Everyone is encouraged to ___ food or clothing for those who suffered a great deal in the flood.
A. attribute
B. distribute
C. contribute
D. drift
【单选题】
___的胜利开辟了世界无产阶级社会主义革命的新时代。
A. 俄国十月革命
B. 资产阶级民主革命
C. 旧民主主义革命
D. 新民主主义革命
【单选题】
19 世纪末 20 世纪初,世界进入了___和无产阶级革命时代。
A. 社会主义
B. 帝国主义
C. 资本主义
D. 共产主义
【单选题】
毛泽东思想形成和发展的实践基础是___
A. 中国共产党领导人民进行革命和建设的成功实践
B. 中国共产党进行革命和建设的实践
C. 中国共产党领导人民进行新民主主义革命的成功实践
D. 中国共产党领导人民进行社会主义革命的成功实践
【单选题】
党的___将毛泽东思想写入党章,确立为党必须长期坚持的指导思想。
A. 六届六中全会
B. 八大
C. 七大
D. 十一届三中全会
【单选题】
产阶级和___。
A. 既有革命要求又有动摇性的民族资产阶级
B. 既有革命要求又有坚定性的小资产阶级
C. 既有革命要求又有生存要求的民族资产阶级
D. 既有革命要求又有生存要求的小资产阶级
【单选题】
独立性,实行___政策。
A. 又团结又斗争
B. 团结—斗争—团结
C. 又团结又斗争,以斗争求团结
D. 独立自主
【单选题】
因此中国革命只能以长期的___为主要形式。
A. 武装斗争
B. 土地革命
C. 统一战线
D. 建立革命根据地
【单选题】
在中国建立社会主义制度这一重大问题。___
A. 社会主义工业化
B. 向社会主义过渡
C. 社会主义改造
D. 社会主义工业化和社会主义改造并举
【单选题】
毛泽东提出的人民民主专政的理论是___。
A. 对人民内部的民主和对敌人的专政互相结合
B. 对人民的民主与专政相结合
C. 对敌人的民主与专政相结合
D. 对人民内部的民主与专政相结合
【单选题】
然是___。
A. 生产关系和生产力之间的矛盾
B. 上层建筑和经济基础之间的矛盾
C. 人民对于建立先进的工业国的要求同落后的农业国的现实之间的矛盾
D. 生产关系和生产力之间的矛盾、上层建筑和经济基础之间的矛盾
【单选题】
行___的方针。
A. “批评——团结——批评”
B. “团结——批评——团结”
C. “说服——教育——团结”
D. “说服——批评——教育” 12.在社会主义制度建立后,毛泽东领导全党和全国人民积极探索适合中国国情的社会主义
【单选题】
行___的方针。
A. “长期共存,肝胆相照”
B. “长期共存,互相监督”
C. “肝胆相照,互相监督”
D. “统一战线,互相监督”
【单选题】
作中实行___的方针。
A. “统筹兼顾,适当安排”
B. “兼容并包,适当安排”
C. “统筹兼顾,齐头并进”
D. “齐头并进,适当安排” 15.在社会主义制度建立后,毛泽东领导全党和全国人民积极探索适合中国国情的社会主义