60. (单选题)Python中实现多个条件判断需要用到( )语句与if语句的组合。
A. else
B. elif
C. pass
D. 以上均不正确
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-2f08-c01a-2cf5d6189000.html
点击查看答案
63. (单选题)一个简单的Series是由()的数据组成的
A. 两个数组
B. 三个数组
C. 一个数组
D. 四个数组
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-353e-c01a-2cf5d6189000.html
点击查看答案
33. (多选题)设置二行二列4个子图并在第3个区域绘制图形,以下语句正确的有:
A. plt.subplot(2, 2, 3)
B. plt.subplot(2, 2, 2)
C. plt.subplot(223)
D. plt.subplot(222)
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-f634-c01a-2cf5d6189000.html
点击查看答案
179. (填空题)表达式[1, 2, 3]*3的执行结果为:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-1a0f-c01a-2cf5d6189000.html
点击查看答案
15. (多选题)元组与列表的主要区别有:
A. 元组是不可变数据类型,列表是可变数据类型
B. 元组可以为空,列表不能为空
C. 元组的界定符是圆括号,列表的界定符是方括号
D. 元组的内置方法只有count()和index(),列表的内置方法较多
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-cf2e-c01a-2cf5d6189000.html
点击查看答案
184. (填空题)字典的()()方法返回字典中的“键-值对”列表
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-2634-c01a-2cf5d6189000.html
点击查看答案
38. (单选题)用于返回字符串s的长度的函数为:
A. abs(s)
B. len(s)
C. count(s)
D. max(s)
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-0177-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
点击查看答案
27. (多选题)以下选项中能返回集合s和t的交集的是:
A. s | t
B. s & t
C. s ^ t
D. s.intersection(t)
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-e99c-c01a-2cf5d6189000.html
点击查看答案
108. (单选题)当需要在字符串中使用特殊字符时,Python使用( )作为转义字符的起始符号
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-9056-c01a-2cf5d6189000.html
点击查看答案