-
Notifications
You must be signed in to change notification settings - Fork 875
Expand file tree
/
Copy pathmain.py.py
More file actions
47 lines (43 loc) · 3.67 KB
/
Copy pathmain.py.py
File metadata and controls
47 lines (43 loc) · 3.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
from mymodule import stats_word
sample_text = '''
愚公移⼭
太行,王屋⼆山的北面,住了一個九十歲的⽼翁,名叫愚公。⼆山佔地廣闊,擋住去路路,使他
和家⼈往來極為不便。
⼀天,愚公召集家⼈人說:「讓我們各盡其力,剷平⼆山,開條道路,直通豫州,你們認為怎
樣?」
⼤家都異異⼝同聲贊成,只有他的妻子表示懷疑,並說:「你連開鑿一個⼩丘的⼒量都沒有,怎
可能剷平太行、王屋⼆山呢?況且,鑿出的⼟石⼜丟到哪裏去呢?」
⼤家都熱烈地說:「把⼟石丟進渤海海裏。」
於是愚公就和兒孫,⼀起開挖土,把⼟石搬運到渤海去。
愚公的鄰居是個寡婦,有個兒⼦八歲也興致勃地⾛來幫忙。
寒來暑往,他們要一年才能往返渤海一次。
住在⿈河畔的智叟,看見他們這樣辛苦,取笑愚公說:「你不是很愚蠢嗎?你已一把年紀
了,就是⽤盡你的氣力,也不能挖去山的一角呢?」
愚公歎息道:「你有這樣的成見,是不會明白的。你⽐那寡婦的⼩兒子還不如呢!就算我死
了,還有我的兒子,我的孫⼦,我的曾孫⼦,他們一直傳下去。⽽這⼆山是不會加大的,總有
⼀天,我們會把它們剷平。」
智叟聽了,無話可說:
⼆山的守護神被愚公的堅毅精神嚇倒,便把此事奏知天帝。天帝佩服愚公的精神,就命兩位⼤
力神揹走⼆山。
How The Foolish Old Man Moved Mountains
Yugong was a ninety-year-old man who lived at the north of two high mountains, Mount Taixing and Mount Wangwu.
Stretching over a wide expanse of land, the mountains blocked yugong’s way making it inconvenient for him and his family to get around.
One day yugong gathered his family together and said,”Let’s do our best to level these two mountains. We shall open a road that leads to Yuzhou. What do you think?”
All but his wife agreed with him.
“You don’t have the strength to cut even a small mound,” muttered his wife. “How on earth do you suppose you can level Mount Taixin
and Mount Wanwu? Moreover, where will all the earth and rubble go?”
“Dump them into the Sea of Bohai!” said everyone.
So Yugong, his sons, and his grandsons started to break up rocks and remove the earth. They transported the earth and rubble to the Sea of Bohai.
Now Yugong’s neighbour was a widow who had an only child eight years old. Evening the young boy offered his help eagerly.
Summer went by and winter came. It took Yugong and his crew a full year to travel back and forth once.
On the bank of the Yellow River dwelled an old man much respected for his wisdom. When he saw their back-breaking labour, he ridiculed Yugong saying,”Aren’t you foolish, my friend? You are very old now,
and with whatever remains of your waning strength, you won’t be able to remove even a corner of the mountain.”
Yugong uttered a sigh and said,”A biased person like you will never understand. You can’t even compare with the widow’s little boy!”
“Even if I were dead, there will still be my children, my grandchildren, my great grandchildren, my great great grandchildren.
They descendants will go on forever. But these mountains will not grow any taler. We shall level them one day!” he declared with confidence.
The wise old man was totally silenced.
When the guardian gods of the mountains saw how determined Yugong and his crew were, they were struck with fear and reported the incident to the Emperor of Heavens.
Filled with admiration for Yugong, the Emperor of Heavens ordered two mighty gods to carry the mountains away.
'''
result = stats_word.stats_text(sample_text)
print('统计结果==>',result)