材料类笔试题库.docxVIP

  • 1
  • 0
  • 约5.5千字
  • 约 9页
  • 2026-08-22 发布于山东
  • 举报

材料类笔试题库

姓名:__________考号:__________

一、单选题(共10题)

1.以下哪个选项是Python中的可变类型?()

A.int

B.float

C.list

D.tuple

2.在Python中,如何定义一个函数?()

A.deffunction_name():

B.function_name():

C.deffunction_name():return

D.function_name=function

3.以下哪个是Python中的循环语句?()

A.if

B.while

C.for

D.alloftheabove

4.以下哪个是Python中的布尔值?()

A.True

B.False

C.None

D.0

5.如何获取一个字符串的长度?()

A.len(string)

B.string.length

C.string.size

D.string.length()

6.在Python中,如何进行类型转换?()

A.typeconversion

B.casting

C.typecast

D.typeconversion()

7.以下哪个是Python中的列表推导式?()

A.[iforiinrange(0

文档评论(0)

1亿VIP精品文档

相关文档