148. (判断题)使用下标可以访问字符串中的每一个字符
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-de23-c01a-2cf5d6189000.html
点击查看答案
86. (单选题)以下关于Python缩进的描述中,错误的是( )
A. Python用严格的缩进表示程序的格式框架,所有代码都需要在行前至少加一个空格
B. 缩进是可以嵌套的,从而形成多层缩进
C. 缩进表达了所属关系和代码块的所属范围
D. 判断、循环、函数等都能够通过缩进包含一批代码
解析:答案解析:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-645b-c01a-2cf5d6189000.html
点击查看答案
109. (单选题)下列数据中,不属于字符串的是( )
A. 'ab'
B. '''perface'''
C. "52wo"
D. abc
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-91e7-c01a-2cf5d6189000.html
点击查看答案
116. (单选题)下列程序执行后输出的结果是( )Plain Textx='abc'y=xy=100print(x)
A. "abc"
B. 100
C. abc
D. 979899
解析:答案解析:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-a1cb-c01a-2cf5d6189000.html
点击查看答案
64. (单选题)pandas中哪个函数不能实现数据的合并()
A. agg()
B. concat()
C. join()
D. merge()
解析:答案解析:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-374a-c01a-2cf5d6189000.html
点击查看答案
47. (单选题)import numpy as npprint(np.array([1, 2, 3, 4]))以上程序的运行结果为:
A. [ 1, 2, 3, 4]
B. [1 2 3 4]
C. 1 2 3 4
D. 1, 2, 3, 4
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-1456-c01a-2cf5d6189000.html
点击查看答案
23. (多选题)ls = [25, 13, 36, 1]lst = [88]将列表lst中的元素加到列表ls末尾,输出列表[25, 13, 36, 1, 88]的正确的选项有:
A. ls = [25, 13, 36, 1]lst = [88]lsⱣⱤnew = ls + lstprint(lsⱣⱤnew)
B. ls = [25, 13, 36, 1]lst = [88]lsⱣⱤnew = ls.extend(lst)print(lsⱣⱤnew)
C. ls = [25, 13, 36, 1]lst = [88]ls.extend(lst)print(ls)
D. ls = [25, 13, 36, 1]lst = [88]lsⱣⱤnew = ls.extend(lst)print(ls)
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-e0b5-c01a-2cf5d6189000.html
点击查看答案
5. (多选题)遍历循环语句的结构为:Plain Textfor var in iterable:其中var为变量名;iterable为一个可迭代对象,包括哪些类型的对象?
A. 整数
B. 字符串
C. 文件对象
D. 集合、range、列表、元组
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-ba58-c01a-2cf5d6189000.html
点击查看答案
97. (单选题)已知x=10,y=20,z=30;以下语句执行后x,y,z的值是()。if x < y:z=xx=yy=z
A. 10,20,30
B. 10,20,20
C. 20,10,10
D. 20,10,30
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-7b0f-c01a-2cf5d6189000.html
点击查看答案
95. (单选题)在函数里面调用另外一个函数,这就是函数的( )调用。
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-765d-c01a-2cf5d6189000.html
点击查看答案