- 2
- 0
- 约4.96千字
- 约 9页
- 2026-07-24 发布于中国
- 举报
赛码网考试题库及答案
姓名:__________考号:__________
一、单选题(共10题)
1.以下哪个是Python中定义函数的关键字?()
A.define
B.function
C.def
D.procedure
2.在Python中,如何实现字符串的格式化输出?()
A.%s
B.
C.toString()
D.format()
3.在Python中,如何删除列表中的一个元素?()
A.remove(element)
B.delete(element)
C.dellist[element]
D.erase(element)
4.在Python中,以下哪个是全局变量的关键字?()
A.global
B.external
C.public
D.globalvar
5.以下哪个是Python中的字典类型?()
A.List
B.Array
C.Dictionary
D.Map
6.在Python中,如何进行列表推导?()
A.listcomprehension
B.arraycomprehension
C.dictcomprehension
D.setcomprehension
7.在Python中,如何捕获异常?()
A.catch(ex)
原创力文档

文档评论(0)