- 0
- 0
- 约5.81千字
- 约 15页
- 2026-05-24 发布于河北
- 举报
2025年编程Python深度学习真题
考试时间:______分钟总分:______分姓名:______
一、选择题(每题2分,共40分)
1.在Python中,以下哪个语句是正确的?
A.if(x5):print(xisgreaterthan5)
B.ifx5:print(xisgreaterthan5)
C.ifx5:print(xisgreaterthan5)
D.ifx5:print(xisgreaterthan5)
2.下列哪个不是Python的基本数据类型?
A.int
B.float
C.string
D.boolean
3.在Python中,如何定义一个空列表?
A.list=[]
B.list=
C.list={}
D.list=()
4.以下哪个函数用于在Python中计算列表的长度?
A.len()
B.count()
C.size()
D.length()
5.在Python中,如何正确地注释一行代码?
A.//Thisisacomment
B.#Thisisacomment
C./*Thisisacomment*/
D.--Thisisacomment
6.以下哪个是Python中的全
原创力文档

文档评论(0)