71. (单选题)
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/000dde4165427c15c01a2cf5d6189000.png)
对以上数据,先按照年龄字段降序,若年龄相同再按照身高升序排列正确的语句为(0
A. frame.sortⱣⱤvalues(ascending=['age','height], by=[False,True])
B. frame.sortⱣⱤvalues(by=('age','height), ascending=(False,True))
C. frame.sortⱣⱤvalues(ascending=('age','height), by=(False,True))
D. frame.sortⱣⱤvalues(by=['age','height], ascending=[False,True])
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-458e-c01a-2cf5d6189000.html
点击查看答案
135. ( ) 创建函数,完成功能:允许输入任意个数字,输出这些数字求和的结果。
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-c528-c01a-2cf5d6189000.html
点击查看答案
81. (单选题)循环中可以用( )语句跳出当前循环剩余的语句,继续进行下一轮循环。
A. pass
B. continue
C. break
D. 以上均不是
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-5abb-c01a-2cf5d6189000.html
点击查看答案
70. (单选题)DataFrame中,在原数据基础上添加一行新数据,使用的方法为()
A. extend()函数
B. append()函数
C. insert()函数
D. drop()函数
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-437a-c01a-2cf5d6189000.html
点击查看答案
8. (多选题)关于匿名函数,下面说法中正确的有:
A. 匿名函数是一个没有名字的函数
B. 匿名函数可用作函数的参数
C. 应用匿名函数可使代码更简洁
D. 过多的应用匿名函数可能会使程序的可读性变差
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-c085-c01a-2cf5d6189000.html
点击查看答案
183. (填空题)Python 语句print(tuple([1,2,3]))的运行结果是:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-2304-c01a-2cf5d6189000.html
点击查看答案
186. (填空题)函数可以有多个参数,参数之间使用( )分隔
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-2a1e-c01a-2cf5d6189000.html
点击查看答案
51. (单选题)对于字符串的标识,Python 中可使用的方法很多,下面正确的是( )
A. " What's happened to you?"
B. ' What's happened to you?'
C. ' What\\'s happened to you?'
D. "" Oh! " It sounds terrible."
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-1db2-c01a-2cf5d6189000.html
点击查看答案
36. (单选题)用于提前终止循环的流程控制语句是:
A. pass
B. continue
C. break
D. try
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-fd3d-c01a-2cf5d6189000.html
点击查看答案
41. (单选题)ls = [25, 13, 36, 1]ls.clear()与del ls的处理结果的区别是:
A. ls.clear()只是清空列表,del ls是删除列表对象
B. ls.clear()只是删除列表对象,del ls是清空列表
C. ls.clear()与del ls的处理结果没有区别
D. ls.clear()只是清空列表,del ls是删除程序
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-072e-c01a-2cf5d6189000.html
点击查看答案