2025年Python编程基础考试题库1.docx

2025年Python编程基础考试题库1

一、单选题(共30道题)

1.range(3,8)生成的整数序列是()?

A.[3,4,5,6,7,8]。

B.[2,3,4,5,6,7]。

C.[3,4,5,6,7,8,9]。

D.[3,4,5,6,7](正确答案)。

2.str(7)。3的结果是()?

A.21。

B.777(正确答案)。

C.21。

D.777。

3.hello。2的结果是()?

A.hellohello(正确答案)。

B.hello。

C.hello2。

D.hello。

4.world[-1]返回的是()?

A.d(正确答案)。

B.r。

C.l。

D.w。

5.range(

文档评论(0)

1亿VIP精品文档

相关文档