2026年贵州省微课测试题A卷及答案.docVIP

  • 1
  • 0
  • 约4.06千字
  • 约 15页
  • 2026-04-08 发布于山东
  • 举报

2026年贵州省微课测试题A卷及答案

一、单项选择题(总共10题,每题2分)

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

A.function

B.class

C.def

D.struct

答案:B

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

A.list

B.tuple

C.dictionary

D.array

答案:D

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

A.//thisisacomment

B.thisisacomment

C./thisisacomment/

D.--thisisacomment

答案:B

4.下列哪个是Python中的迭代器?

A.list

B.set

C.tuple

D.alloftheabove

答案:D

5.在Python中,用于打开一个文件的函数是?

A.open()

B.file()

C.openfile()

D.createfile()

答案:A

6.下列哪个是Python中的生成器?

A.listcomprehension

B.lambdafunction

C.generatorfunction

D.alloftheabove

答案:C

7.在Python中,用于删除字典中指定键的函数是?

A.remove

文档评论(0)

1亿VIP精品文档

相关文档