2026计算机Python高频考点考前突围试题及答案(考前突围).docVIP

  • 0
  • 0
  • 约3.49千字
  • 约 12页
  • 2026-05-12 发布于安徽
  • 举报

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.boolean

D.char

3.在Python中,如何正确地注释一行代码?

A.//

B.

C./

D.--

4.下列哪个语句在Python中用于循环?

A.while

B.for

C.bothAandB

D.neitherAnorB

5.在Python中,如何正确地创建一个空列表?

A.[]

B.{}

C.()

D.list()

6.下列哪个函数用于在Python中获取当前日期和时间?

A.date()

B.time()

C.datetime()

D.now()

7.在Python中,如何正确地导入一个模块?

A.importmodule

B.includemodule

C.requiremodule

D.importmodule

8.下列哪个不是Python中的控制结构?

A.if

B.switch

C.for

D.while

文档评论(0)

1亿VIP精品文档

相关文档