- 0
- 0
- 约4.89千字
- 约 9页
- 2026-07-28 发布于中国
- 举报
鸿科经纬考试题及答案
鸿科经纬考试题及答案
鸿科经纬考试题及答案
姓名:__________考号:__________
一、单选题(共10题)
1.以下哪个是Python中定义函数的关键字?()
A.class
B.def
C.if
D.while
2.在Python中,如何表示字符串?()
A.string
B.string
C.string
D.`string`
3.以下哪个不是Python中的数据类型?()
A.int
B.float
C.list
D.function
4.在Python中,如何获取列表的长度?()
A.length(list)
B.len(list)
C.list.length()
D.list.size()
5.以下哪个是Python中的逻辑运算符?()
A.+
B.-
C.
D.||
6.在Python中,如何进行类型转换?()
A.typeconversion
B.cast
C.convert
D.typing
7.以下哪个是Python中的条件语句关键字?()
A.if
B.else
C.then
D.elif
8.在Python中,如何定义一个类?()
A.classClass
B.defineClass
C
原创力文档

文档评论(0)