APP下载
首页
>
财会金融
>
宏观经济学选择题
搜索
宏观经济学选择题
题目内容
(
多选题
)
25. (多选题)创建空字典的方法为:

A、d = {}print(d)

B、d = dict()print(d)

C、d = ()print(d)

D、d = set()print(d)

答案:AB

宏观经济学选择题
171. (判断题)在定义函数时,某个参数名字前面带有一个*符号表示可变长度参数,可以接收任意多个位置参数并存放于一个元组之中。
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-0b7a-c01a-2cf5d6189000.html
点击查看题目
41. (单选题)ls = [25, 13, 36, 1]ls.clear()与del ls的处理结果的区别是:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-072e-c01a-2cf5d6189000.html
点击查看题目
43. (单选题)列表ls = [['Tom', 24], ['Jack', 18], ['Ada', 20]]中的每个子列表第二个元素为年龄,按年龄排序输出,正确的程序是:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-0bea-c01a-2cf5d6189000.html
点击查看题目
92. (单选题)假设a=9,b=2,那么下列运算中,错误的是()
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-6fec-c01a-2cf5d6189000.html
点击查看题目
172. (判断题)位置参数必须在关键字参数的后面
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-0cfe-c01a-2cf5d6189000.html
点击查看题目
150. (判断题)Python中字符串数据类型是不可变数据类型
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-e2bf-c01a-2cf5d6189000.html
点击查看题目
181. (填空题)元组使用( )存放元素,列表使用的是方括号存放元素
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-1dea-c01a-2cf5d6189000.html
点击查看题目
88. (单选题)在屏幕上打印输出Hello World,使用的Python语句是( )
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-6810-c01a-2cf5d6189000.html
点击查看题目
51. (单选题)对于字符串的标识,Python 中可使用的方法很多,下面正确的是( )
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-1db2-c01a-2cf5d6189000.html
点击查看题目
113. (单选题)字符串的strip方法的作用是( )
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-9b3c-c01a-2cf5d6189000.html
点击查看题目
首页
>
财会金融
>
宏观经济学选择题
题目内容
(
多选题
)
手机预览
宏观经济学选择题

25. (多选题)创建空字典的方法为:

A、d = {}print(d)

B、d = dict()print(d)

C、d = ()print(d)

D、d = set()print(d)

答案:AB

分享
宏观经济学选择题
相关题目
171. (判断题)在定义函数时,某个参数名字前面带有一个*符号表示可变长度参数,可以接收任意多个位置参数并存放于一个元组之中。

A.   对

B.   错

https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-0b7a-c01a-2cf5d6189000.html
点击查看答案
41. (单选题)ls = [25, 13, 36, 1]ls.clear()与del ls的处理结果的区别是:

A. ls.clear()只是清空列表,del ls是删除列表对象

B. ls.clear()只是删除列表对象,del ls是清空列表

C. ls.clear()与del ls的处理结果没有区别

D. ls.clear()只是清空列表,del ls是删除程序

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-072e-c01a-2cf5d6189000.html
点击查看答案
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
点击查看答案
92. (单选题)假设a=9,b=2,那么下列运算中,错误的是()

A. a+b的值是11

B. a//b的值是4

C. a%b的值是1

D. a**b的值是18

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-6fec-c01a-2cf5d6189000.html
点击查看答案
172. (判断题)位置参数必须在关键字参数的后面

A.   对

B.   错

https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-0cfe-c01a-2cf5d6189000.html
点击查看答案
150. (判断题)Python中字符串数据类型是不可变数据类型

A.   对

B.   错

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-e2bf-c01a-2cf5d6189000.html
点击查看答案
181. (填空题)元组使用( )存放元素,列表使用的是方括号存放元素
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-1dea-c01a-2cf5d6189000.html
点击查看答案
88. (单选题)在屏幕上打印输出Hello World,使用的Python语句是( )

A. print('Hello World')

B. println("Hello World")

C. print(Hello World)

D. printf('Hello World')

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-6810-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
点击查看答案
113. (单选题)字符串的strip方法的作用是( )

A.   删除字符串头尾指定的字符

B.   删除字符串末尾指定的字符

C.   删除字符串头部指定的字符

D.   通过指定分隔符对字符串切片

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