2026计算机Python高频考点全书精讲试题及答案(全书入门).docVIP

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

2026计算机Python高频考点全书精讲试题及答案(全书入门).doc

2026计算机Python高频考点全书精讲试题及答案(全书入门)

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

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

A.def

B.function

C.func

D.define

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

A.int

B.float

C.string

D.boolean

3.如何在Python中创建一个空列表?

A.[]

B.{}

C.()

D.list()

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

A.//

B.

C./

D.//

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

A.len()

B.length()

C.count()

D.size()

6.下列哪个是Python中的逻辑运算符?

A.

B.||

C.and

D.|

7.如何在Python中导入math模块?

A.importmath

B.includemath

C.requiremath

D.loadmath

8.下列哪个是Python中的条件语句?

A.if

B.while

C.for

D.switch

9.如何在Python中创建一个空字典?

A.{}

B.[]

C.()

D.dict(

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档