88. (单选题)在屏幕上打印输出Hello World,使用的Python语句是( )
A. print('Hello World')
B. println("Hello World")
C. print(Hello World)
D. printf('Hello World')
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-6810-c01a-2cf5d6189000.html
点击查看答案
182. (填空题)任意长度的Python列表、元组和字符串中最后一个元素的索引为()。
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-1ffc-c01a-2cf5d6189000.html
点击查看答案
28. (多选题)关于字典的概念,以下选项正确的有:
A. 字典的元素分键和值两部分
B. 字典的键不可以重复
C. 字典的键必须是不可变数据类型
D. 字典的值必须是不可变数据类型
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-ebee-c01a-2cf5d6189000.html
点击查看答案
183. (填空题)Python 语句print(tuple([1,2,3]))的运行结果是:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-2304-c01a-2cf5d6189000.html
点击查看答案
179. (填空题)表达式[1, 2, 3]*3的执行结果为:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-1a0f-c01a-2cf5d6189000.html
点击查看答案
159. (判断题)元组是不可变的,不支持列表对象的inset()、remove()等方法,也不支持del命令删除其中的元素,但可以使用del命令删除整个元组对象。
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-f303-c01a-2cf5d6189000.html
点击查看答案
86. (单选题)以下关于Python缩进的描述中,错误的是( )
A. Python用严格的缩进表示程序的格式框架,所有代码都需要在行前至少加一个空格
B. 缩进是可以嵌套的,从而形成多层缩进
C. 缩进表达了所属关系和代码块的所属范围
D. 判断、循环、函数等都能够通过缩进包含一批代码
解析:答案解析:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-645b-c01a-2cf5d6189000.html
点击查看答案
193. (填空题)函数的递归是指在一个函数的内部调用函数( )的过程
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-37ec-c01a-2cf5d6189000.html
点击查看答案
165. (判断题)函数的名称可以随意命名
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-feaa-c01a-2cf5d6189000.html
点击查看答案
156. (判断题)列表的嵌套是指列表的元素是另一个列表
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-ee14-c01a-2cf5d6189000.html
点击查看答案