以下是小编整理了reduce的用法及短语(共含6篇),希望你喜欢,也可以帮助到您,欢迎分享!同时,但愿您也能像本文投稿人“杀手李决”一样,积极向本站投稿分享好文章。
reduce可用作及物动词,也可用作不及物动词。用作及物动词时接名词或代词作宾语。可用于被动结构。
reduce偶尔也可接动词不定式作宾语补足语,意思是“使…不得不…”。
reduce后常接介词by表示“以某幅度减少”或“以…方法减少”; reduce常接介词to表示“减少到…”或“使陷入…状态”。
reduce的过去分词reduced常可用作形容词,在句中作定语。
短语:
reduce by 减少了
reduce from 从...减少
reduce in 在…方面降低
reduce to 迫使;使处于;使变弱为;归纳为
reduce的用法1:reduce的基本意思是“减少”,指重量、程度、数目、范围、速度等减少或降低,不仅可以指量的变化,还可以指质的转变。引申可作“降职”“使…陷入某种状态或状况中”“将…概括或简化”“将…还原”“征服”“攻陷”等解。
reduce的用法2:reduce可用作及物动词,也可用作不及物动词。用作及物动词时接名词或代词作宾语。可用于被动结构。
reduce的用法3:reduce偶尔也可接动词不定式作宾语补足语,意思是“使…不得不…”。
reduce的用法4:reduce后常接介词by表示“以某幅度减少”或“以…方法减少”; reduce常接介词to表示“减少到…”或“使陷入…状态”。
reduce的用法5:reduce的过去分词reduced常可用作形容词,在句中作定语。
1. The job losses will reduce the total workforce to 7,000.
职位减少后,在职工人总数将减至7,000人。
2. He finally corrected his misstatement and offered to reduce the fee.
他终于纠正了自己的错误说法,提出要减少费用。
3. The plan is designed to reduce some of the company's mountainous debt.
该计划旨在减少公司堆积如山的债务。
4. The agency should reduce turnaround time by 11 per cent.
该代理机构应削减11%的周转时间。
5. They believed that controlling the money supply would reduce inflation.
他们相信控制货币供应量会减少通货膨胀。
6. Hybridising the two species will reduce the red to orange.
将这两个物种杂交后颜色会由红色淡化成橙色。
7. Other industries have had to sack managers to reduce administrative costs.
其他行业只得精简管理人员以减少行政开支。
8. They are pressing the Chancellor to reduce excise duty on beer.
他们正给施压,要求降低啤酒的消费税。
9. Boil the liquid in a small saucepan to reduce it by half.
用小炖锅炖,收一半汤汁。
10. If the Europeans did not reduce subsidies, a trade war would ensue.
如果欧洲人不减少补贴,便会发生贸易战。
11. Incorporating organic material into chalky soils will reduce the alkalinity.
在白垩质土壤中添加有机物可降低其碱性。
12. Protective gloves reduce the absorption of chemicals through the skin.
防护手套可以减少皮肤对化学物质的吸收。
13. The creams have been used to reduce vaginal infections.
已使用这种乳膏来减少阴道感染。
14. People should eat less fat to reduce the risk of heart disease.
人们应该减少脂肪摄入,以降低患心脏病的危险。
15. We all need to look for ways to reduce our carbon footprint.
我们都需要寻求降低碳排放量的方法。
reduce的过去式及其他时态:
过去式: reduced
过去分词: reduced
现在分词: reducing
reduce的用法:
reduce的用法1:reduce的基本意思是“减少”,指重量、程度、数目、范围、速度等减少或降低,不仅可以指量的变化,还可以指质的转变。引申可作“降职”“使…陷入某种状态或状况中”“将…概括或简化”“将…还原”“征服”“攻陷”等解。
reduce的用法2:reduce可用作及物动词,也可用作不及物动词。用作及物动词时接名词或代词作宾语。可用于被动结构。
reduce的用法3:reduce偶尔也可接动词不定式作宾语补足语,意思是“使…不得不…”。
reduce的用法4:reduce后常接介词by表示“以某幅度减少”或“以…方法减少”; reduce常接介词to表示“减少到…”或“使陷入…状态”。
reduce的用法5:reduce的过去分词reduced常可用作形容词,在句中作定语。
reduce的过去式例句:
1. The quota of four tickets per person had been reduced to two.
每人可购买的票的限额已经由四张降至两张。
2. The supply of money in circulation was drastically reduced overnight.
流通领域的货币供应量一夜骤减。
3. The attentions of the media reduced her to tears.
媒体的关注把她弄哭了。
4. The piece was reduced in size by planing down the four corners.
这块木头的4个角刨过后就变小了。
5. He reduced his needs to the minimum by simplifying his life.
他过上了一种简单的生活,将自己的需求降到最低限度。
6. If I reduced somebody to tears I'd be mortified.
如果我把谁弄哭了,我会尴尬的。
7. The fourteenth century cathedral was reduced to a mass of rubble.
这座14世纪的大教堂变成了一堆瓦砾。
8. The deal would have reduced competition in the commuter-aircraft market.
这项协议原本会减少通勤航班市场的竞争。
9. The reduced consumer demand is also affecting company profits.
消费需求的降低也影响到了公司的利润。
10. The Normans built the castle which was reduced to ruins under Cromwell.
诺曼人建造了这座后来在克伦威尔统治时期变成废墟的城堡。
11. On the production line, downtime has been reduced from 55% to 26%.
生产线上停机时间从55%减到了26%。
12. They wanted the army reduced to a police force.
他们想把这支队伍降级为一支警察部队。
13. Reduced interest rates would help ease recessionary pressures in the economy.
利率的下调将有助于缓解经济衰退的压力。
14. Boil for 20 minutes until the liquid has reduced by half.
煮20分钟,直到液体体积减半。
15. All the buildings in the town have been reduced to rubble.
城里所有的建筑都成了废墟。
这篇文章主要介绍了Python map和reduce函数用法示例,本文给出了两个函数的多个用法示例,需要的朋友可以参考下
先看map,map函数接收两个参数,一个是函数,一个是序列,map将传入的函数依次作用到序列的每个元素,并把结果作为新的list返回。
举例说明,比如我们有一个函数a(x)=x*2,要把这个函数作用在一个list [1, 2, 3, 4, 5]上,就可以用map()实现如下:
代码如下:
>>> def a(x):
... return x * 2
...
>>> map(a, [1,2,3,4,5])
[2, 4, 6, 8, 10]
map传入的第一个参数a,即a函数,当然你也可以不用map函数实现这功能:
代码如下:
>>> list = []
>>> for i in [1, 2, 3, 4, 5]:
... list.append(a(i))
...
>>> print list
[2, 4, 6, 8, 10]
从代码量上来讲,map要精简很多,所以,map()作为高阶函数,事实上它把运算规则抽象了,因此,我们不但可以计算简单的a(x)=x*2,还可以计算任意复杂的函数,比如,把这个list所有数字转为字符串:
代码如下:
>>> map(str,[1,2,3,4,5])
[‘1‘, ‘2‘, ‘3‘, ‘4‘, ‘5‘]
>>>
只需要一行代码,就搞定了。让我们再看和来自顾雪峰python教程的习题:利用map()函数,把用户输入的不规范的英文名字,变为首字母大写,其他小写的规范名字。输入:[‘adam‘, ‘LISA‘, ‘barT‘],输出:[‘Adam‘, ‘Lisa‘, ‘Bart‘],
作为我个人来说,我可能会先将不规范的英文名全转换在小写然后再通过capitalize()函数,将首字母转换在写,代码如下:
代码如下:
>>> def caps(name):
... return name.capitalize()
...
>>> def lowers(name):
... return name.lower()
...
>>> map(caps, map(lowers,[‘adam‘, ‘LISA‘, ‘barT‘]))
[‘Adam‘, ‘Lisa‘, ‘Bart‘]
再看reduce的用法。reduce(function, sequence, starting_value):对sequence中的item顺序迭代调用function,如果有starting_value,还可以作为初始值调用,例如可以用来对List求和:
代码如下:
>>> def add(x, y):
... return x + y
...
>>> reduce(add, [1, 3, 5, 7, 9])
25
>>> reduce(add, range(1, 11))
55
>>> reduce(add, range(1, 11),20)
75
当然求和运算可以直接用Python内建函数sum(),没必要动用reduce。但是如果要把序列[1,2,3,4,5,6,7]变换成整数1234567,reduce就可以派上用场:
代码如下:
>>> def fn(x, y):
... return x * 10 + y
...
>>> reduce(fn, [1,3,4,5,6,7])
134567
reduce同义词辨析
reduce与decrease、diminish、lessen等动词都可以表示“减少,降低”的意思,具体区别如下:
reduce指降低价格、数量、规模等。reduce后常接介词by表示“以某幅度减少”或“以…方法减少”;reduce常接介词to表示“减少到…”或“使陷入…状态”。
decrease指变少或降低水平。
diminish指大小、数量不断减小,也可引申为贬低某事物的重要性或价值。
lessen指程度、规模等减少,也可指降低某事物的可能性、影响等。