APP下载
首页
>
财会金融
>
宏观经济学选择题
搜索
宏观经济学选择题
题目内容
(
多选题
)
38. (单选题)用于返回字符串s的长度的函数为:

A、abs(s)

B、len(s)

C、count(s)

D、max(s)

答案:B

宏观经济学选择题
70. (单选题)DataFrame中,在原数据基础上添加一行新数据,使用的方法为()
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-437a-c01a-2cf5d6189000.html
点击查看题目
73. (单选题)对以上数据,以性别字段作为分组依据,并对分组后的数据重新排序的语法正确的是()
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-49eb-c01a-2cf5d6189000.html
点击查看题目
125. (单选题)使用( )关键字创建自定义函数
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-b01f-c01a-2cf5d6189000.html
点击查看题目
181. (填空题)元组使用( )存放元素,列表使用的是方括号存放元素
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-1dea-c01a-2cf5d6189000.html
点击查看题目
26. (多选题)从集合中删除元素的方法有:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-e784-c01a-2cf5d6189000.html
点击查看题目
51. (单选题)对于字符串的标识,Python 中可使用的方法很多,下面正确的是( )
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-1db2-c01a-2cf5d6189000.html
点击查看题目
56. (单选题)Python 中的数据结构可分为可变类型与不可变类型,下面属于不可变类型的是( )
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-26ea-c01a-2cf5d6189000.html
点击查看题目
134. ( )求1累加到100的和,将程序写在下方:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-c359-c01a-2cf5d6189000.html
点击查看题目
11. (多选题)s = "Hello world!"下面程序语句和注释均正确的有:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-c70d-c01a-2cf5d6189000.html
点击查看题目
36. (单选题)用于提前终止循环的流程控制语句是:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-fd3d-c01a-2cf5d6189000.html
点击查看题目
首页
>
财会金融
>
宏观经济学选择题
题目内容
(
多选题
)
手机预览
宏观经济学选择题

38. (单选题)用于返回字符串s的长度的函数为:

A、abs(s)

B、len(s)

C、count(s)

D、max(s)

答案:B

分享
宏观经济学选择题
相关题目
70. (单选题)DataFrame中,在原数据基础上添加一行新数据,使用的方法为()

A. extend()函数

B. append()函数

C. insert()函数

D. drop()函数

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-437a-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
点击查看答案
125. (单选题)使用( )关键字创建自定义函数

A. function

B. func

C. def

D. procedure

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-b01f-c01a-2cf5d6189000.html
点击查看答案
181. (填空题)元组使用( )存放元素,列表使用的是方括号存放元素
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-1dea-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
点击查看答案
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
点击查看答案
56. (单选题)Python 中的数据结构可分为可变类型与不可变类型,下面属于不可变类型的是( )

A.   字典

B.   列表

C.   字典中的键

D.   集合(set类型)

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-26ea-c01a-2cf5d6189000.html
点击查看答案
134. ( )求1累加到100的和,将程序写在下方:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-c359-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
点击查看答案
36. (单选题)用于提前终止循环的流程控制语句是:

A. pass

B. continue

C. break

D. try

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