- 1
- 0
- 约4.86千字
- 约 9页
- 2026-08-19 发布于中国
- 举报
北森题库2026及答案
北森题库2026及答案
北森题库2026及答案
姓名:__________考号:__________
题号
一
二
三
四
五
总分
评分
一、单选题(共10题)
1.Python中定义函数的关键字是什么?()
A.function
B.define
C.def
D.method
2.在Python中,如何遍历一个列表?()
A.foriinlist
B.foreachlist
C.list.each
D.list.for
3.Python中的字符串是不可变的,以下哪个操作会改变字符串内容?()
A.append
B.insert
C.modify
D.replace
4.在Python中,如何获取列表的长度?()
A.len(list)
B.size(list)
C.length(list)
D.count(list)
5.Python中的字典类型,以下哪个是正确的键值对表示?()
A.{key:value}
B.[key:value]
C.(key,value)
D.key=value
6.在Python中,如何定义一个类?()
A.classMyClass
B.defineMyClass
C.createMyClass
D
原创力文档

文档评论(0)