计算机统考12_原创精品文档.docxVIP

  • 2
  • 0
  • 约4.48千字
  • 约 8页
  • 2026-09-01 发布于中国
  • 举报

计算机统考12

计算机统考12

计算机统考12

姓名:__________考号:__________

一、单选题(共10题)

1.以下哪个选项是Python中用于定义函数的关键字?()

A.class

B.def

C.if

D.while

2.Python中,以下哪个是列表类型?()

A.dict

B.set

C.tuple

D.list

3.在Python中,如何输出当前时间?()

A.print(time())

B.print(date())

C.print(datetime())

D.print(current_time())

4.在Python中,如何进行字符串的格式化输出?()

A.%s

B..format()

C.

D..join()

5.在Python中,以下哪个是布尔类型?()

A.int

B.float

C.bool

D.str

6.在Python中,如何定义一个类?()

A.classClass:

B.defClass():

C.varClass=class

D.noneoftheabove

7.在Python中,以下哪个是元组类型?()

A.list

B.set

C.tuple

D.dict

8.在Python中,如何实

文档评论(0)

1亿VIP精品文档

相关文档