- 2
- 0
- 约4.31千字
- 约 8页
- 2026-07-24 发布于宁夏
- 举报
部门面试题目
姓名:__________考号:__________
一、单选题(共10题)
1.以下哪个选项是Python中定义函数的关键字?()
A.function
B.define
C.def
D.func
2.在Python中,如何输出一个字符串?()
A.print(string)
B.output(string)
C.display(string)
D.say(string)
3.以下哪个是Python中的列表推导式?()
A.listcomprehension
B.arraycomprehension
C.listbuild
D.arraybuild
4.在Python中,如何进行异常处理?()
A.try-catch
B.try-except
C.handle-exception
D.error-catch
5.在Python中,如何删除字典中的键值对?()
A.remove(key)
B.delete(key)
C.del(key)
D.erase(key)
6.以下哪个是Python中的元组类型?()
A.tuple
B.array
C.list
D.set
7.在Python中,如何导入一个模块?()
A.importmodule
原创力文档

文档评论(0)