APP下载
首页
>
财会金融
>
宏观经济学选择题
搜索
宏观经济学选择题
题目内容
(
多选题
)
71. (单选题)对以上数据,先按照年龄字段降序,若年龄相同再按照身高升序排列正确的语句为(0

A、frame.sortⱣⱤvalues(ascending=['age','height], by=[False,True])

B、frame.sortⱣⱤvalues(by=('age','height), ascending=(False,True))

C、frame.sortⱣⱤvalues(ascending=('age','height), by=(False,True))

D、frame.sortⱣⱤvalues(by=['age','height], ascending=[False,True])

答案:D

宏观经济学选择题
61. (单选题)可以使用( )语句跳出当前循环的剩余语句,继续进行下一轮循环。
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-310a-c01a-2cf5d6189000.html
点击查看题目
148. (判断题)使用下标可以访问字符串中的每一个字符
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-de23-c01a-2cf5d6189000.html
点击查看题目
4. (多选题)下面注释语句语法正确的有:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-b835-c01a-2cf5d6189000.html
点击查看题目
191. (填空题)在函数内部定义的变量称作( )变量
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-3401-c01a-2cf5d6189000.html
点击查看题目
26. (多选题)从集合中删除元素的方法有:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-e784-c01a-2cf5d6189000.html
点击查看题目
161. (判断题)字符串属于Python有序序列,和列表、元组一样都支持双向索引。
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-f723-c01a-2cf5d6189000.html
点击查看题目
118. (单选题)在Python中有s=['a','b']s.append([1,2])s.insert(1,7);执行以上代码后,s值为( )
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-a3dc-c01a-2cf5d6189000.html
点击查看题目
91. (单选题)下列选项中,( )的布尔值不是False。
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-6dd6-c01a-2cf5d6189000.html
点击查看题目
21. (多选题)ls为一个列表,下面正确的选项有:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-dc00-c01a-2cf5d6189000.html
点击查看题目
102. (单选题)下列选项中,会输出1,2,3三个数字的是( )
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-8514-c01a-2cf5d6189000.html
点击查看题目
首页
>
财会金融
>
宏观经济学选择题
题目内容
(
多选题
)
手机预览
宏观经济学选择题

71. (单选题)对以上数据,先按照年龄字段降序,若年龄相同再按照身高升序排列正确的语句为(0

A、frame.sortⱣⱤvalues(ascending=['age','height], by=[False,True])

B、frame.sortⱣⱤvalues(by=('age','height), ascending=(False,True))

C、frame.sortⱣⱤvalues(ascending=('age','height), by=(False,True))

D、frame.sortⱣⱤvalues(by=['age','height], ascending=[False,True])

答案:D

分享
宏观经济学选择题
相关题目
61. (单选题)可以使用( )语句跳出当前循环的剩余语句,继续进行下一轮循环。

A. pass

B. continue

C. break

D. 以上均不正确

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

A.   对

B.   错

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-de23-c01a-2cf5d6189000.html
点击查看答案
4. (多选题)下面注释语句语法正确的有:

A. n = int(input()) /*输入一个正整数*/

B. n = int(input()) # 输入一个正整数

C. n = int(input()) '''输入一个正整数'''

D. # 输入一个正整数n = int(input())

https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-b835-c01a-2cf5d6189000.html
点击查看答案
191. (填空题)在函数内部定义的变量称作( )变量
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-3401-c01a-2cf5d6189000.html
点击查看答案
26. (多选题)从集合中删除元素的方法有:

A. s.remove(x)

B. s.discard(x)

C. s.pop(x)

D. s.clear()

https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-e784-c01a-2cf5d6189000.html
点击查看答案
161. (判断题)字符串属于Python有序序列,和列表、元组一样都支持双向索引。

A.   对

B.   错

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-f723-c01a-2cf5d6189000.html
点击查看答案
118. (单选题)在Python中有s=['a','b']s.append([1,2])s.insert(1,7);执行以上代码后,s值为( )

A. [‘a', 7, ‘b', 1, 2]

B. [[1, 2], 7, ‘a',‘b’]

C. [1, 2,‘a’,7’,‘b’]

D. [‘a', 7, ‘b’,[1, 2]]

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-a3dc-c01a-2cf5d6189000.html
点击查看答案
91. (单选题)下列选项中,( )的布尔值不是False。

A.   None

B.   0

C.   ()

D.   1

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-6dd6-c01a-2cf5d6189000.html
点击查看答案
21. (多选题)ls为一个列表,下面正确的选项有:

A.   ls.pop(0)总是可以获取去除第一个元素的列表

B.   对于空列表,ls.pop()会触发异常

C.   ls[1:]都可以获取去除第一个元素的列表,列表为空时仍返回空列表

D.   对于非空列表,ls.pop(0)可以获取去除第一个元素的列表

https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-dc00-c01a-2cf5d6189000.html
点击查看答案
102. (单选题)下列选项中,会输出1,2,3三个数字的是( )

A. for i in range(3)print(i)

B. for i in range (2):print(i+1)

C. aⱣⱤlist=[0,1,2]for i in aⱣⱤlist:print(i+1)

D. i=1while i<3:print (i)i=i+1

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