2026计算机Python高频考点模块速刷真题及答案(模块拿分).docVIP

  • 1
  • 0
  • 约3.88千字
  • 约 13页
  • 2026-05-14 发布于安徽
  • 举报

2026计算机Python高频考点模块速刷真题及答案(模块拿分).doc

2026计算机Python高频考点模块速刷真题及答案(模块拿分)

一、单项选择题(共20题,每题2分,共40分)。每小题只有一个正确答案,请将正确答案的序号填在答题栏内。

1.在Python中,用于定义类的关键字是?

A.struct

B.class

C.def

D.type

2.下列哪个不是Python中的基本数据类型?

A.int

B.float

C.string

D.boolean

3.在Python中,如何正确地表示一个列表?

A.(1,2,3)

B.[1,2,3]

C.{1,2,3}

D.1,2,3

4.下列哪个是Python中的注释符号?

A.//

B.

C./

D.—

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

A.len(str)

B.str.length()

C.str.size()

D.len(str())

6.下列哪个是Python中的布尔值?

A.true

B.False

C.bool

D.boolean

7.在Python中,如何实现列表的逆序?

A.list.reverse()

B.list[::-1]

C.list.reverse()

D.list.reverse()

8.下列哪个是Python中的字典?

A.{1,2,3}

B.[1,2,3]

C.

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档