59. (单选题)在if语句中进行判断,产生( )时会输出相应的结果
A. 0
B. 1
C. 布尔值
D. 以上均不正确
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-2d32-c01a-2cf5d6189000.html
点击查看答案
158. (判断题)元组是可变数据类型
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-f174-c01a-2cf5d6189000.html
点击查看答案
118. (单选题)在Python中有s=['a','b']s.append([1,2])s.insert(1,7);执行以上代码后,s值为( )
A. [‘a', 7, ‘b', 1, 2]
B. [[1, 2], 7, ‘a',‘b’]
C. [1, 2,‘a’,7’,‘b’]
D. [‘a', 7, ‘b’,[1, 2]]
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-a3dc-c01a-2cf5d6189000.html
点击查看答案
184. (填空题)字典的()()方法返回字典中的“键-值对”列表
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-2634-c01a-2cf5d6189000.html
点击查看答案
74. (单选题)以下选项中不符合 Python 语言变量命名规则的是( )
A. TempStr
B. 3ⱣⱤ1
C. ⱣⱤAl
D. l
解析:答案解析:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-4c03-c01a-2cf5d6189000.html
点击查看答案
35. (单选题)表示整数num能被4整除的表达式为:
A. num * 4 == 0
B. num // 4 == 0
C. num / 4 == 0
D. num % 4 == 0
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-faa1-c01a-2cf5d6189000.html
点击查看答案
67. (单选题)在Numpy中创建一个全为0的矩阵可以用()函数
A. zeros()
B. emptys()
C. arange()
D. ones()
解析:答案解析:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-3d42-c01a-2cf5d6189000.html
点击查看答案
133. ( )输入字符串,将字符串的开头和结尾变成'+',产生一个新的字符串,将代码写在下方:例如: 输入字符串'abc123', 输出'+bc12+'
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-c130-c01a-2cf5d6189000.html
点击查看答案
147. (判断题)Python中单个字符也属于字符串类型
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-dc39-c01a-2cf5d6189000.html
点击查看答案
69. (单选题)DataFrame中使用sort(values()方法对数据重新排序时,可以通过()参数指定函数的排序方式为升序或降序。
A. by参数
B. ascending参数
C. loc参数
D. how参数
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-414f-c01a-2cf5d6189000.html
点击查看答案