皮皮学,免费搜题
登录
搜题
【简答题】
列表排序 用 input 函数输入一个单词列表,逗号分隔,要求 ( 1 )将单词列表按单词长短降序排序,并输出; 举例如下: >>> x = ['aaaa', 'bc', 'd', 'b', 'ba'] >>> x.sort (key=len, reverse=True) # 按长度降序排序 >>>print(x) ['aaaa', 'bc', 'ba', 'd', 'b'] ( 2 )将单词列表映射为一个代表单词长度的整数列表,要求用内置函数 map 实现。 举例如下: >>> x=['a','ab','abc'] >>> print(list(map(len,x))) [1, 2, 3] 程序运行示例:
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【单选题】()是会计电算化流程所不允许的。
A.
原始凭证审核后直接生成记账凭证
B.
将未审核凭证打印检查后直接登账
C.
结账前计算出会计报表
D.
年末输入下年度第一季度会计凭证
【单选题】奶牛的性成熟时间为()。
A.
6-8月龄
B.
8-12月龄
C.
12-14月龄
D.
10-15月龄
【单选题】The research has advised the school to adopt(采取)a complete【C8】______approach(措施)analyzing pupils
A.
new
B.
special
C.
common
D.
interesting
【判断题】后桥主减速器的传动比越大,汽车的动力性越好、经济性越好。
A.
正确
B.
错误
【判断题】后桥主减速器的传动比越大,汽车的动力性好而经济性变差。
A.
正确
B.
错误
【单选题】We wonder if there is any possibility of the statistics ____ as soon as possible. [     ]
A.
to be analyzed
B.
being analyzed
C.
analyzing
D.
to analyze
【单选题】What is the purpose of the passage? 查看材料
A.
To analyze the causes of the panics and teach people how to prevent them.
B.
To introduce different kinds of panics.
C.
To help people set up daily norms that can prevent panics.
D.
To inform. people of painful examples form. panics.
【判断题】无限克隆功能可以在电子白板上拖出无数相同的图片。
A.
正确
B.
错误
【单选题】A lie detector finds out that the subject is telling a lie______.
A.
by detecting and analyzing the subject's physical changes
B.
by increasing the subject's pulse rate, sweating and breathing rate
C.
by analyzing the answers on the subject to certain questions
D.
All of the above
【单选题】图书馆电子资源比较丰富,根据读者不同的使用需求,可以把电子资源大致分为________类。
A.
2
B.
4
C.
5
D.
6
相关题目: