APP下载
首页
>
财会金融
>
宏观经济学选择题
搜索
宏观经济学选择题
题目内容
(
多选题
)
67. (单选题)在Numpy中创建一个全为0的矩阵可以用()函数

A、zeros()

B、emptys()

C、arange()

D、ones()

答案:A

解析:答案解析:

宏观经济学选择题
43. (单选题)列表ls = [['Tom', 24], ['Jack', 18], ['Ada', 20]]中的每个子列表第二个元素为年龄,按年龄排序输出,正确的程序是:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-0bea-c01a-2cf5d6189000.html
点击查看题目
98. (单选题)有一个函数关系表如下所示:下面程序段中,能正确表示上面关系的是()
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-7ca9-c01a-2cf5d6189000.html
点击查看题目
67. (单选题)在Numpy中创建一个全为0的矩阵可以用()函数
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-3d42-c01a-2cf5d6189000.html
点击查看题目
30. (多选题)向字典d = {'北京': 2030, '上海': 2200, '天津': 1985}中增加元素'重庆': 3325,下面程序正确的是:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-f01a-c01a-2cf5d6189000.html
点击查看题目
106. (单选题)以下代码的输出结果是( )for s in "testatest":if s=="a" or s=="e":continueprint(s,end='')
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-8cb3-c01a-2cf5d6189000.html
点击查看题目
9. (多选题)关于字符串的定义,下面选项中正确的有:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-c300-c01a-2cf5d6189000.html
点击查看题目
110. (单选题)字符串'Hi,Andy'中,字符'n'对应的下标位置为( )
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-9407-c01a-2cf5d6189000.html
点击查看题目
99. (单选题)当a,b,c,d=1,3,5,4时,执行完下面一段程序后x的值为()
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-7ebb-c01a-2cf5d6189000.html
点击查看题目
126. (单选题)以下代码中的print()menu():print('--------------------------')print(' xx涮涮锅 点菜系统')print(' 1. 羊肉涮涮锅')print(' 2. 牛肉涮涮锅')print(' 3. 猪肉涮涮锅')print('--------------------------')print(menu()
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-b1ee-c01a-2cf5d6189000.html
点击查看题目
179. (填空题)表达式[1, 2, 3]*3的执行结果为:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-1a0f-c01a-2cf5d6189000.html
点击查看题目
首页
>
财会金融
>
宏观经济学选择题
题目内容
(
多选题
)
手机预览
宏观经济学选择题

67. (单选题)在Numpy中创建一个全为0的矩阵可以用()函数

A、zeros()

B、emptys()

C、arange()

D、ones()

答案:A

解析:答案解析:

分享
宏观经济学选择题
相关题目
43. (单选题)列表ls = [['Tom', 24], ['Jack', 18], ['Ada', 20]]中的每个子列表第二个元素为年龄,按年龄排序输出,正确的程序是:

A. ls = [['Tom', 24], ['Jack', 18], ['Ada', 20]]ls.sort()print(ls)

B. ls = [['Tom', 24], ['Jack', 18], ['Ada', 20]]ls.sort(key=lambda x: x[1])print(ls)

C. ls = [['Tom', 24], ['Jack', 18], ['Ada', 20]]ls.sort(key=lambda x: x[0])print(ls)

D. ls = [['Tom', 24], ['Jack', 18], ['Ada', 20]]ls.sort(key=lambda x: x[2])print(ls)

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-0bea-c01a-2cf5d6189000.html
点击查看答案
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
点击查看答案
67. (单选题)在Numpy中创建一个全为0的矩阵可以用()函数

A. zeros()

B. emptys()

C. arange()

D. ones()

解析:答案解析:

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-3d42-c01a-2cf5d6189000.html
点击查看答案
30. (多选题)向字典d = {'北京': 2030, '上海': 2200, '天津': 1985}中增加元素'重庆': 3325,下面程序正确的是:

A. d = {'北京': 2030, '上海': 2200, '天津': 1985}d['重庆'] = 3325print(d)

B. d = {'北京': 2030, '上海': 2200, '天津': 1985}d('重庆') = 3325print(d)

C. d = {'北京': 2030, '上海': 2200, '天津': 1985}d.update({'重庆': 3325})print(d)

D. d = {'北京': 2030, '上海': 2200, '天津': 1985}d.update('重庆': 3325)print(d)

https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-f01a-c01a-2cf5d6189000.html
点击查看答案
106. (单选题)以下代码的输出结果是( )for s in "testatest":if s=="a" or s=="e":continueprint(s,end='')

A. tsttst

B. testatest

C. testtest

D. tstatst

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-8cb3-c01a-2cf5d6189000.html
点击查看答案
9. (多选题)关于字符串的定义,下面选项中正确的有:

A. 'Hello'

B. "Hello"

C. ''

D. ' '

https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-c300-c01a-2cf5d6189000.html
点击查看答案
110. (单选题)字符串'Hi,Andy'中,字符'n'对应的下标位置为( )

A.   1

B.   2

C.   3

D.   4

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-9407-c01a-2cf5d6189000.html
点击查看答案
99. (单选题)当a,b,c,d=1,3,5,4时,执行完下面一段程序后x的值为()

A.   1

B.   2

C.   3

D.   6

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-7ebb-c01a-2cf5d6189000.html
点击查看答案
126. (单选题)以下代码中的print()menu():print('--------------------------')print(' xx涮涮锅 点菜系统')print(' 1. 羊肉涮涮锅')print(' 2. 牛肉涮涮锅')print(' 3. 猪肉涮涮锅')print('--------------------------')print(menu()

A.   无参无返回值函数

B.   无参有返回值函数

C.   有参无返回值函数

D.  有参有返回值函数

解析:答案解析:

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-b1ee-c01a-2cf5d6189000.html
点击查看答案
179. (填空题)表达式[1, 2, 3]*3的执行结果为:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-1a0f-c01a-2cf5d6189000.html
点击查看答案
试题通小程序
试题通app下载