基本信息
源码名称:mapperducer_简单的实例分析
源码大小:0.02M
文件格式:.zip
开发语言:Java
更新时间:2021-08-19
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300

本次赞助数额为: 2 元 
   源码介绍

1 累加求和
data.txt文件内容如下:
1, 3,4, 20
4, 5, 8
, 3| 4
1,3,a,
,20,

输出一个整数N

2 奇偶统计
data.txt文件如上
输出:
奇数 N
偶数 M

3 搜索所有<h2></h2>标签
data.txt文件内容如下:
<h2>  1、Rain 雨</h2><p>  Rain is falling all around,</p><p>  雨儿在到处降落,</p><p>  It falls on field and tree,</p><p>  它落在田野和树梢,</p><p>  It rains on the umbrella here,</p><p>  它落在这边的雨伞上,</p><p>  And on the ships at sea.</p><p>  又落在航行海上的船只.</p><h2>  2、Never give up 永不放弃</h2><p>  Never give up, Never lose hope.</p><p>  永 不 放 弃 , 永 不 心 灰 意 冷 .</p><p>  Always have faith, It allows you to cope.</p><p>  永 存 信 念 , 它 会 使 你 应 付 自 如 .</p><p>  Trying times will pass,As they always do.</p><p>  难 捱 的 时 光 终 将 过 去 ,一 如 既 往 .</p><p>  Just have patience, Your dreams will come true.</p><p>  只 要 有 耐 心 , 梦 想 就 会 成 真 .</p><p>  So put on a smile, You'll live through your pain.</p><p>  露 出 微 笑 , 你 会 走 出 痛 苦 .</p><p>  Know it will pass, And strength you will gain</p><p>  相 信 苦 难 定 会 过 去 , 你 将 重 获 力 量 .</p><h2>  3、A Grain of Sand 一粒沙子</h2><p>  William Blake</p><p>  威廉.布莱克</p><p>  To see a world in a grain of sand,</p><p>  从一粒沙子看到一个世界,</p><p>  And a heaven in a wild fllower,</p><p>  从一朵野花看到一个天堂,</p><p>  Hold infinity in the palm of your hand,</p><p>  把握在你手心里的就是无限,</p><p>  And eternity in an hour.</p><p>  永恒也就消融于一个时辰</p><h2>  4、Stopping by Woods on a Snowy Evening 雪夜林畔驻马</h2><p>  </p><p>  By Robert Frost</p><p>  罗伯特.弗罗斯特</p><p>  Whose woods these are I think I know.</p><p>  我想我知道这是谁的树林.</p><p>  His house is in the village though;</p><p>  他的家虽在那边乡村;</p><p>  He will not see me stopping here</p><p>  他看不到我驻足在此地,</p><p>  To watch his woods fill up with snow.</p><p>  伫望他的'树林白雪无垠.</p><p>  My little horse must think it queer</p><p>  我的小马一定会觉得离奇,</p><p>  To stop without a farmhouse near</p><p>  停留于旷无农舍之地,</p><p>  Between the woods and frozen lake</p><p>  在这树林和冰湖中间</p><p>  The darkest evening of the year.</p><p>  一年中最昏暗的冬夕.</p><p>  He gives his harness bells a shake</p><p>  它将它的佩铃朗朗一牵</p><p>  To ask if there is some mistake.</p><p>  问我有没有弄错了地点.</p><p>  The only other sound's the sweep</p><p>  此外但闻微风的拂吹</p><p>  Of easy wind and downy flake.</p><p>  和纷如鹅毛的雪片</p><p>  The woods are lovely, dark and deep.</p><p>  这树林真可爱,黝黑而深邃.</p><p>  But I have promises to keep,</p><p>  可是我还要赶好几英里路才能安睡,</p><p>  And miles to go before I sleep,</p><p>  还要赶好几英里才能安睡.</p><p>  And miles to go before I sleep.</p><h2>  5、ALWAYS HAVE A DREAM 总是有一个梦想</h2><p> </p><p>  Forget about the days when it's been cloudy.</p><p>  忘掉你失意的日子,</p><p>  But don't forget your hours in the sun.</p><p>  但不要忘记黄金的时光.</p><p>  Forget about the times you have been defeated.</p><p>  忘掉你的一次次失败,</p><p>  But don't forget the victories you have won.</p><p>  但不要忘记你夺取的胜利.</p><p>  Forget about the misfortunes you have encountered.</p><p>  忘掉你遭遇的不幸,</p><p>  But don't forget the times your luck has turned.</p><p>  但不要忘记你的时来运转.</p><p>  Forget about the days when you have been lonely.</p><p>  忘掉你的孤独日子,</p><p>  But don't forget the friendly smiles you have seen.</p><p>  但不要忘记你得到的友善微笑.</p><p>  Forget about the plans that didn't seem to work out right.</p><p>  忘掉你没有得以顺利实施的计划,</p><p>  But don't forget to always have a dream.</p><p>  但不要放弃你的梦想</p><h2>  6、THE CUCKOO 布谷鸟</h2><p>  In April, 四月里,</p><p>  Come he will, 它就来了,</p><p>  In May, 五月里,</p><p>  Sing all day, 整天吟唱多逍遥,</p><p>  In June, 六月里,</p><p>  Change his tune, 它在改变曲调,</p><p>  In July, 七月里,</p><p>  Prepare to fly, 准备飞翔,</p><p>  In August, 八月里,</p><p>  Go he must! 它就得离去了!</p><h2>  7、Boats Sail On The Rivers</h2><p>  Boats sail on the rivers, 小舟在河上航行,</p><p>  And ships sail on the seas; 大船在海中操轮,</p><p>  But clouds that sail across the sky, 然而白云飘过天空时,</p><p>  Are prettier far than these. 比这些更为悦人.</p><h2>  8、The Star 星星</h2><p>  Twinkle, twinkle, little star! 闪耀,闪耀,小星星!</p><p>  How I wonder what you are, 我想知道你身形,</p><p>  Up above the world so high, 高高挂在天空中,</p><p>  Like a diamond in the sky. 就像天上的钻石.</p><p>  (2)</p><p>  When the blazing sun is gone, 灿烂太阳已西沉,</p><p>  When he nothing shines upon, 它已不再照万物,</p><p>  Then you show your little light, 你就显露些微光,</p><p>  Twinkle, twinkle all the night. 整个晚上眨眼睛.</p><p>  (3)</p><p>  The dark blue sky you keep 留恋漆黑的天空</p><p>  And often thro' my curtains peep, 穿过窗帘向我望,</p><p>  For you never shut your eye 永不闭上你眼睛</p><p>  Till the sun is in the sky. 直到太阳又现形.</p><p>  (4)</p><p>  'Tis your bright and tiny spark 你这微亮的火星,</p><p>  Lights the traveler in the dark; 黑夜照耀着游人,</p><p>  Though I know not what you are 虽我不知你身形,</p><p>  Twinkle, twinkle, little star! 闪耀,闪耀,小星星!</p>

要求输出所有<h2>标签:
<h2>  1、Rain 雨</h2>
<h2>  2、Never give up 永不放弃</h2>
。。。

4 在第3题的基础上,额外输出 <h2>标签的数量,一个整数N

5 成语接龙
data.txt内容如下:
海枯石烂 大海、 人莫予毒、毒手尊前 前因后果
成千上万 鼠窃狗盗 果于自信、
饕餮之徒 一帆风顺 烂若披锦 万象森罗
锦绣前程 罗雀掘鼠  功败垂成  程门立雪 盗憎主人 
徒劳无功、功成、雪虐风饕 

要求输出:
海枯石烂 烂若披锦 锦绣前程 程门立雪 雪虐风饕 饕餮之徒 徒劳无功 功败垂成 成千上万 万象森罗 罗雀掘鼠 鼠窃狗盗 盗憎主人 人莫予毒 毒手尊前 前因后果 果于自信

6  在第5题的基础上,额外输出不能接龙的内容
要求输出:
海枯石烂 烂若披锦 锦绣前程 程门立雪 雪虐风饕 饕餮之徒 徒劳无功 功败垂成 成千上万 万象森罗 罗雀掘鼠 鼠窃狗盗 盗憎主人 人莫予毒 毒手尊前 前因后果 果于自信
大海 一帆风顺 功成