APP下载
首页
>
财会金融
>
宏观经济学选择题
搜索
宏观经济学选择题
题目内容
(
单选题
)
49. (单选题)import numpy as npprint(np.arange(1, 11))以上程序的运行结果为:

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

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

C、  1 2 3 4 5 6 7 8 9 10

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

答案:A

宏观经济学选择题
23. (多选题)ls = [25, 13, 36, 1]lst = [88]将列表lst中的元素加到列表ls末尾,输出列表[25, 13, 36, 1, 88]的正确的选项有:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-e0b5-c01a-2cf5d6189000.html
点击查看题目
74. (单选题)以下选项中不符合 Python 语言变量命名规则的是( )
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-4c03-c01a-2cf5d6189000.html
点击查看题目
108. (单选题)当需要在字符串中使用特殊字符时,Python使用( )作为转义字符的起始符号
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-9056-c01a-2cf5d6189000.html
点击查看题目
121. (单选题)Python内置函数()(可以返回列表、元组、字典、集合、字符串以及range对象中元素个数。
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-a806-c01a-2cf5d6189000.html
点击查看题目
3. (多选题)输入一个整数,计算这个数的2次方并输出,正确的是:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-b60c-c01a-2cf5d6189000.html
点击查看题目
56. (单选题)Python 中的数据结构可分为可变类型与不可变类型,下面属于不可变类型的是( )
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-26ea-c01a-2cf5d6189000.html
点击查看题目
11. (多选题)s = "Hello world!"下面程序语句和注释均正确的有:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-c70d-c01a-2cf5d6189000.html
点击查看题目
186. (填空题)函数可以有多个参数,参数之间使用( )分隔
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-2a1e-c01a-2cf5d6189000.html
点击查看题目
193. (填空题)函数的递归是指在一个函数的内部调用函数( )的过程
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-37ec-c01a-2cf5d6189000.html
点击查看题目
44. (单选题)创建空的可变集合的方法是:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-0e02-c01a-2cf5d6189000.html
点击查看题目
首页
>
财会金融
>
宏观经济学选择题
题目内容
(
单选题
)
手机预览
宏观经济学选择题

49. (单选题)import numpy as npprint(np.arange(1, 11))以上程序的运行结果为:

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

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

C、  1 2 3 4 5 6 7 8 9 10

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

答案:A

分享
宏观经济学选择题
相关题目
23. (多选题)ls = [25, 13, 36, 1]lst = [88]将列表lst中的元素加到列表ls末尾,输出列表[25, 13, 36, 1, 88]的正确的选项有:

A. ls = [25, 13, 36, 1]lst = [88]lsⱣⱤnew = ls + lstprint(lsⱣⱤnew)

B. ls = [25, 13, 36, 1]lst = [88]lsⱣⱤnew = ls.extend(lst)print(lsⱣⱤnew)

C. ls = [25, 13, 36, 1]lst = [88]ls.extend(lst)print(ls)

D. ls = [25, 13, 36, 1]lst = [88]lsⱣⱤnew = ls.extend(lst)print(ls)

https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-e0b5-c01a-2cf5d6189000.html
点击查看答案
74. (单选题)以下选项中不符合 Python 语言变量命名规则的是( )

A.   TempStr

B.   3ⱣⱤ1

C.   ⱣⱤAl

D.   l

解析:答案解析:

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-4c03-c01a-2cf5d6189000.html
点击查看答案
108. (单选题)当需要在字符串中使用特殊字符时,Python使用( )作为转义字符的起始符号

A.   \

B.   /

C.   #

D.   %

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-9056-c01a-2cf5d6189000.html
点击查看答案
121. (单选题)Python内置函数()(可以返回列表、元组、字典、集合、字符串以及range对象中元素个数。

A. type( )

B. index( )

C. len( )

D. count( )

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-a806-c01a-2cf5d6189000.html
点击查看答案
3. (多选题)输入一个整数,计算这个数的2次方并输出,正确的是:

A. x = int(input())print(x ^ 2)

B. x = int(input())print(x * 2)

C. x = int(input())print(x ** 2)

D. x = int(input())print(x * x)

https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-b60c-c01a-2cf5d6189000.html
点击查看答案
56. (单选题)Python 中的数据结构可分为可变类型与不可变类型,下面属于不可变类型的是( )

A.   字典

B.   列表

C.   字典中的键

D.   集合(set类型)

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-26ea-c01a-2cf5d6189000.html
点击查看答案
11. (多选题)s = "Hello world!"下面程序语句和注释均正确的有:

A. print(s[3:5]) # 输出 lo

B. print(s[5:3]) # 输出空字符串

C. print(s[::-1]) # 输出!dlrow olleH

D. print(s[-1::-1]) # 输出!dlrow olleH

https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-c70d-c01a-2cf5d6189000.html
点击查看答案
186. (填空题)函数可以有多个参数,参数之间使用( )分隔
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-2a1e-c01a-2cf5d6189000.html
点击查看答案
193. (填空题)函数的递归是指在一个函数的内部调用函数( )的过程
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-37ec-c01a-2cf5d6189000.html
点击查看答案
44. (单选题)创建空的可变集合的方法是:

A. s = {}

B. s = set()

C. s = ()

D. s = dict()

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