Python题库2026.1128forstudent_原创精品文档.docxVIP

  • 1
  • 0
  • 约4.58千字
  • 约 8页
  • 2026-07-28 发布于山东
  • 举报

Python题库2026.1128forstudent_原创精品文档.docx

Python题库2026.1128forstudent

Python题库2026.1128forstudent

Python题库2026.1128forstudent

姓名:__________考号:__________

一、单选题(共10题)

1.Python中,如何定义一个列表?()

A.list=[1,2,3]

B.array=(1,2,3)

C.array=[1,2,3]

D.list=(1,2,3)

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

A.len(str)

B.size(str)

C.length(str)

D.str.size()

3.以下哪个不是Python的数据类型?()

A.int

B.float

C.list

D.class

4.在Python中,如何进行字符串的拼接?()

A.str1+str2

B.str1str2

C.str1*str2

D.str1|str2

5.以下哪个是Python中的无限循环结构?()

A.whileTrue:

B.foriinrange(10):

C.ifi5:

D.deffunction():

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

A.dic

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档