计算机考试试题(精选)apx.docxVIP

  • 1
  • 0
  • 约4.83千字
  • 约 8页
  • 2026-08-15 发布于中国
  • 举报

计算机考试试题(精选)apx

计算机考试试题(精选)apx

计算机考试试题(精选)apx

姓名:__________考号:__________

一、单选题(共10题)

1.以下哪个选项是Python中的条件语句关键字?()

A.if

B.then

C.else

D.elif

2.在Python中,如何定义一个列表?()

A.list=[1,2,3]

B.array=(1,2,3)

C.array=[1,2,3]

D.list=(1,2,3)

3.在Python中,如何获取字符串的长度?()

A.len(string)

B.size(string)

C.length(string)

D.string.size()

4.以下哪个函数用于将字符串转换为整数?()

A.int(string)

B.str(int(string))

C.integer(string)

D.toInt(string)

5.在Python中,如何定义一个字典?()

A.dict={key:value}

B.map=(key,value)

C.dictionary={key:value}

D.hashmap=(key,value)

6.在Python中,如何遍历字

文档评论(0)

1亿VIP精品文档

相关文档