APP下载
首页
>
财会金融
>
宏观经济学选择题
搜索
宏观经济学选择题
题目内容
(
判断题
)
142. (判断题)Python使用符号#表示单行注释。

A、  对

B、  错

答案:A

宏观经济学选择题
26. (多选题)从集合中删除元素的方法有:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-e784-c01a-2cf5d6189000.html
点击查看题目
20. (多选题)对列表[25, 13, 36, 1]进行排序并输出,下面程序正确的有:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-d9c1-c01a-2cf5d6189000.html
点击查看题目
189. (填空题)def func5(a, b, *c): print(a,b)func5(1,2,3,4,5,6)运行结果是( )
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-2fd4-c01a-2cf5d6189000.html
点击查看题目
128. (单选题)Plain Textdef Sum(a, b=3, c=5):print(a,b,c)Sum(8)运行结果是:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-b594-c01a-2cf5d6189000.html
点击查看题目
9. (多选题)关于字符串的定义,下面选项中正确的有:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-c300-c01a-2cf5d6189000.html
点击查看题目
159. (判断题)元组是不可变的,不支持列表对象的inset()、remove()等方法,也不支持del命令删除其中的元素,但可以使用del命令删除整个元组对象。
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-f303-c01a-2cf5d6189000.html
点击查看题目
123. (单选题)下列选项中,正确定义了一个字典的是( )
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-ac3a-c01a-2cf5d6189000.html
点击查看题目
31. (多选题)从字典d = {'北京': 2030, '上海': 2200, '天津': 1985, '重庆': 3325}中删除元素'重庆': 3325,下面程序正确的有:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-f1f2-c01a-2cf5d6189000.html
点击查看题目
53. (单选题)Pyhton 中的序列类型数据结构元素的切片操作非常灵活且功能强大,对于列表Letter=['a','b','c','d','e'],下述操作会正常输出结果的是( )
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-216e-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
点击查看题目
首页
>
财会金融
>
宏观经济学选择题
题目内容
(
判断题
)
手机预览
宏观经济学选择题

142. (判断题)Python使用符号#表示单行注释。

A、  对

B、  错

答案:A

分享
宏观经济学选择题
相关题目
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
点击查看答案
20. (多选题)对列表[25, 13, 36, 1]进行排序并输出,下面程序正确的有:

A. ls = [25, 13, 36, 1]ls.sort()print(ls)

B. ls = [25, 13, 36, 1]ls.sorted()print(ls)

C. ls = [25, 13, 36, 1]print(ls.sort())

D. ls = [25, 13, 36, 1]print(sorted(ls))

https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-d9c1-c01a-2cf5d6189000.html
点击查看答案
189. (填空题)def func5(a, b, *c): print(a,b)func5(1,2,3,4,5,6)运行结果是( )
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-2fd4-c01a-2cf5d6189000.html
点击查看答案
128. (单选题)Plain Textdef Sum(a, b=3, c=5):print(a,b,c)Sum(8)运行结果是:

A.   8

B.   8 3 5

C.   8,3,5

D.   0 3 5

解析:答案解析:

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-b594-c01a-2cf5d6189000.html
点击查看答案
9. (多选题)关于字符串的定义,下面选项中正确的有:

A. 'Hello'

B. "Hello"

C. ''

D. ' '

https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-c300-c01a-2cf5d6189000.html
点击查看答案
159. (判断题)元组是不可变的,不支持列表对象的inset()、remove()等方法,也不支持del命令删除其中的元素,但可以使用del命令删除整个元组对象。

A.   对

B.   错

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-f303-c01a-2cf5d6189000.html
点击查看答案
123. (单选题)下列选项中,正确定义了一个字典的是( )

A. a=['a',1,'b',2,'c',3]

B. b=('a',1,'b',2,'c',3)

C. c={'a',1,'b',2,'c',3}

D. d{'a':1,'b':2,'c':3}

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-ac3a-c01a-2cf5d6189000.html
点击查看答案
31. (多选题)从字典d = {'北京': 2030, '上海': 2200, '天津': 1985, '重庆': 3325}中删除元素'重庆': 3325,下面程序正确的有:

A. d = {'北京': 2030, '上海': 2200, '天津': 1985, '重庆': 3325}d.pop('重庆')print(d)

B. d = {'北京': 2030, '上海': 2200, '天津': 1985, '重庆': 3325}d.popitem('重庆')print(d)

C. d={'北京':2030,'上海':2200,'天津':1985,'重庆':3325}deld['重庆']print(d)

D. d = {'北京': 2030, '上海': 2200, '天津': 1985, '重庆': 3325}d.clear('重庆')print(d)

https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-f1f2-c01a-2cf5d6189000.html
点击查看答案
53. (单选题)Pyhton 中的序列类型数据结构元素的切片操作非常灵活且功能强大,对于列表Letter=['a','b','c','d','e'],下述操作会正常输出结果的是( )

A. Letter[-1:-4:-1]

B. Letter( :3:2)

C. Letter[1:3:0]

D. Letter[ 'a': 'd': 2]

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