APP下载
首页
>
财会金融
>
宏观经济学选择题
搜索
宏观经济学选择题
题目内容
(
判断题
)
150. (判断题)Python中字符串数据类型是不可变数据类型

A、  对

B、  错

答案:A

宏观经济学选择题
2. (多选题)输入一个表示半径的浮点数,计算圆的面积的程序正确的有:(圆周率取3.14,结果保留2位小数)
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-b32a-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
点击查看题目
68. (单选题)下列哪项属于pandas的数据结构( )
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-3f60-c01a-2cf5d6189000.html
点击查看题目
148. (判断题)使用下标可以访问字符串中的每一个字符
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-de23-c01a-2cf5d6189000.html
点击查看题目
24. (多选题)为列表city = ['北京', '上海', '天津', '重庆']中每个元素增加从1开始的序号,下面语句正确的为:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-e337-c01a-2cf5d6189000.html
点击查看题目
130. (单选题)以下哪个函数用于绘制折线图()
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-bb34-c01a-2cf5d6189000.html
点击查看题目
97. (单选题)已知x=10,y=20,z=30;以下语句执行后x,y,z的值是()。if x < y:z=xx=yy=z
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-7b0f-c01a-2cf5d6189000.html
点击查看题目
6. (多选题)输入一个正整数,输出小于这个数的所有奇数的和,以下程序结果正确的是:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-bc82-c01a-2cf5d6189000.html
点击查看题目
127. (单选题)写出下面代码的运行结果。Plain Textdef Sum(a, b=3, c=5):print(a,b,c)Sum(a=8, c=2)
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-b37a-c01a-2cf5d6189000.html
点击查看题目
73. (单选题)对以上数据,以性别字段作为分组依据,并对分组后的数据重新排序的语法正确的是()
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-49eb-c01a-2cf5d6189000.html
点击查看题目
首页
>
财会金融
>
宏观经济学选择题
题目内容
(
判断题
)
手机预览
宏观经济学选择题

150. (判断题)Python中字符串数据类型是不可变数据类型

A、  对

B、  错

答案:A

分享
宏观经济学选择题
相关题目
2. (多选题)输入一个表示半径的浮点数,计算圆的面积的程序正确的有:(圆周率取3.14,结果保留2位小数)

A. radius = float(input())area = 3.14 * radius ** 2print(round(area, 2))

B. radius = float(input())area = 3.14 * radius * radiusprint(round(area, 2))

C. radius = input()print(round(3.14 * radius ** 2, 2))

D. radius = float(input())print(round(3.14 * radius * radius, 2))

https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-b32a-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
点击查看答案
68. (单选题)下列哪项属于pandas的数据结构( )

A. DataFrame对象

B. array对象

C. dtype对象

D. list对象

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-3f60-c01a-2cf5d6189000.html
点击查看答案
148. (判断题)使用下标可以访问字符串中的每一个字符

A.   对

B.   错

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-de23-c01a-2cf5d6189000.html
点击查看答案
24. (多选题)为列表city = ['北京', '上海', '天津', '重庆']中每个元素增加从1开始的序号,下面语句正确的为:

A. city = ['北京', '上海', '天津', '重庆']orderⱣⱤcity = enumerate(city, 1)print(orderⱣⱤcity)

B. city = ['北京', '上海', '天津', '重庆']orderⱣⱤcity = enumerate(city, 1)print(list(orderⱣⱤcity))

C. city = ['北京', '上海', '天津', '重庆']orderⱣⱤcity = zip(range(1, 5), city)print(orderⱣⱤcity)

D. city=['北京','上海','天津','重庆']orderⱣⱤcity=zip(range(1,5),city)print(list(orderⱣⱤcity))

https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-e337-c01a-2cf5d6189000.html
点击查看答案
130. (单选题)以下哪个函数用于绘制折线图()

A. scatter()

B. plot()

C. bar()

D. pie()

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-bb34-c01a-2cf5d6189000.html
点击查看答案
97. (单选题)已知x=10,y=20,z=30;以下语句执行后x,y,z的值是()。if x < y:z=xx=yy=z

A.   10,20,30

B.   10,20,20

C.   20,10,10

D.   20,10,30

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-7b0f-c01a-2cf5d6189000.html
点击查看答案
6. (多选题)输入一个正整数,输出小于这个数的所有奇数的和,以下程序结果正确的是:

A. n=int(input())result=0foriinrange(n):ifi%2==1:result=result+iprint(result)

B. n = int(input())result = 0for i in range(1, n):if i % 2 == 1:result = result + iprint(result)

C. n = int(input())result = 0for i in range(n):result = result + iprint(result)

D. n = int(input())print(sum([i for i in range(n) if i % 2 == 1]))

https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-bc82-c01a-2cf5d6189000.html
点击查看答案
127. (单选题)写出下面代码的运行结果。Plain Textdef Sum(a, b=3, c=5):print(a,b,c)Sum(a=8, c=2)

A.   8 2

B.   8,2

C.   8 3 2

D.   8,3,2

解析:答案解析:

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-b37a-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
点击查看答案
试题通小程序
试题通app下载