APP下载
首页
>
财会金融
>
宏观经济学选择题
搜索
宏观经济学选择题
题目内容
(
多选题
)
8. (多选题)关于匿名函数,下面说法中正确的有:

A、  匿名函数是一个没有名字的函数

B、  匿名函数可用作函数的参数

C、  应用匿名函数可使代码更简洁

D、  过多的应用匿名函数可能会使程序的可读性变差

答案:ABCD

宏观经济学选择题
98. (单选题)有一个函数关系表如下所示:下面程序段中,能正确表示上面关系的是()
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-7ca9-c01a-2cf5d6189000.html
点击查看题目
183. (填空题)Python 语句print(tuple([1,2,3]))的运行结果是:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-2304-c01a-2cf5d6189000.html
点击查看题目
107. (单选题)以下代码的执行结果是()sum=0for i in range(100):if(i%10):continuesum = sum + iprint(sum)
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-8e7e-c01a-2cf5d6189000.html
点击查看题目
48. (单选题)import numpy as npprint(np.linspace(0, 10, 11))以上程序的运行结果为:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-1678-c01a-2cf5d6189000.html
点击查看题目
73. (单选题)对以上数据,以性别字段作为分组依据,并对分组后的数据重新排序的语法正确的是()
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-49eb-c01a-2cf5d6189000.html
点击查看题目
28. (多选题)关于字典的概念,以下选项正确的有:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-ebee-c01a-2cf5d6189000.html
点击查看题目
178. (填空题)Python 语句如下s1=[1, 2, 3, 4]s2=[5,6,7]print(len(s1+s2))以上代码的运行结果是( )
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-17e8-c01a-2cf5d6189000.html
点击查看题目
51. (单选题)对于字符串的标识,Python 中可使用的方法很多,下面正确的是( )
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-1db2-c01a-2cf5d6189000.html
点击查看题目
147. (判断题)Python中单个字符也属于字符串类型
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-dc39-c01a-2cf5d6189000.html
点击查看题目
12. (多选题)year = 2021下面语句中可以正确输出"2021年"的有:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-c951-c01a-2cf5d6189000.html
点击查看题目
首页
>
财会金融
>
宏观经济学选择题
题目内容
(
多选题
)
手机预览
宏观经济学选择题

8. (多选题)关于匿名函数,下面说法中正确的有:

A、  匿名函数是一个没有名字的函数

B、  匿名函数可用作函数的参数

C、  应用匿名函数可使代码更简洁

D、  过多的应用匿名函数可能会使程序的可读性变差

答案:ABCD

分享
宏观经济学选择题
相关题目
98. (单选题)有一个函数关系表如下所示:下面程序段中,能正确表示上面关系的是()

A. y = x + 1if x >= 0:if x == 0:y = xelse:y = x-1

B. y = x - 1if x! = 0:if x > 0:y = x + 1else:y = x

C. if x <= 0:if x < 0:y = x - 1else:y = xelse:y = x+1

D. y = xif x <= 0:if x < 0:y = x - 1else:y = x + 1

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-7ca9-c01a-2cf5d6189000.html
点击查看答案
183. (填空题)Python 语句print(tuple([1,2,3]))的运行结果是:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-2304-c01a-2cf5d6189000.html
点击查看答案
107. (单选题)以下代码的执行结果是()sum=0for i in range(100):if(i%10):continuesum = sum + iprint(sum)

A.   5050

B.   4950

C.   450

D.   45

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-8e7e-c01a-2cf5d6189000.html
点击查看答案
48. (单选题)import numpy as npprint(np.linspace(0, 10, 11))以上程序的运行结果为:

A.   [ 0. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10.]

B.   [ 0., 1., 2., 3., 4., 5., 6., 7., 8., 9., 10.]

C.   0. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10.

D.   0., 1., 2., 3., 4., 5., 6., 7., 8., 9., 10.

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-1678-c01a-2cf5d6189000.html
点击查看答案
73. (单选题)对以上数据,以性别字段作为分组依据,并对分组后的数据重新排序的语法正确的是()

A. frame[['ID']].groupby(frame('gender')).count().sortⱣⱤvalues(by=('gender'))

B. frame[['ID']].groupby(['gender']).count().sortⱣⱤvalues(by=frame['gender'])

C. frame[['ID']].groupby(('gender')).count().sortⱣⱤvalues(by=frame('gender'))

D. frame[['ID']].groupby(frame['gender']).count().sortⱣⱤvalues(by=['gender'])

解析:答案解析:

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-49eb-c01a-2cf5d6189000.html
点击查看答案
28. (多选题)关于字典的概念,以下选项正确的有:

A.   字典的元素分键和值两部分

B.   字典的键不可以重复

C.   字典的键必须是不可变数据类型

D.   字典的值必须是不可变数据类型

https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-ebee-c01a-2cf5d6189000.html
点击查看答案
178. (填空题)Python 语句如下s1=[1, 2, 3, 4]s2=[5,6,7]print(len(s1+s2))以上代码的运行结果是( )
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-17e8-c01a-2cf5d6189000.html
点击查看答案
51. (单选题)对于字符串的标识,Python 中可使用的方法很多,下面正确的是( )

A. " What's happened to you?"

B. ' What's happened to you?'

C. ' What\\'s happened to you?'

D. "" Oh! " It sounds terrible."

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-1db2-c01a-2cf5d6189000.html
点击查看答案
147. (判断题)Python中单个字符也属于字符串类型

A.   对

B.   错

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-dc39-c01a-2cf5d6189000.html
点击查看答案
12. (多选题)year = 2021下面语句中可以正确输出"2021年"的有:

A. print(year + '年')

B. print(str(year) + '年')

C. print(f'{year}年')

D. print('{}年'.format(year))

https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-c951-c01a-2cf5d6189000.html
点击查看答案
试题通小程序
试题通app下载