1.数据爬取

在百度上找了一个网站https://www.dashuzhai.com
用python爬
代码很臃肿,之前爬小说的代码,简单的修改了一下,能用就行


import requests,lxml.html,time,randomagent = ['Mozilla/4.0(compatible;MSIE7.0;WindowsNT5.1;AvantBrowser)','Mozilla/4.0(compatible;MSIE7.0;WindowsNT5.1;360SE)','Mozilla/4.0(compatible;MSIE7.0;WindowsNT5.1;Trident/4.0;SE2.XMetaSr1.0;SE2.XMetaSr1.0;.NETCLR2.0.50727;SE2.XMetaSr1.0)','Mozilla/4.0(compatible;MSIE7.0;WindowsNT5.1;TheWorld)','Mozilla/4.0(compatible;MSIE7.0;WindowsNT5.1;TencentTraveler4.0)','Opera/9.80(Macintosh;IntelMacOSX10.6.8;U;en)Presto/2.8.131Version/11.11','Mozilla/5.0(WindowsNT6.1;rv:2.0.1)Gecko/20100101Firefox/4.0.1','Mozilla/5.0(compatible;MSIE9.0;WindowsNT6.1;Trident/5.0','Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 OPR/26.0.1656.60','Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36','Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; QQDownload 732; .NET4.0C; .NET4.0E; LBBROWSER)','Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.84 Safari/535.11 SE 2.X MetaSr 1.0','Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.122 UBrowser/4.0.3214.0 Safari/537.36','Mozilla/5.0 (X11; U; Linux x86_64; zh-CN; rv:1.9.2.10) Gecko/20100922 Ubuntu/10.10 (maverick) Firefox/3.6.10','Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.163 Safari/535.1',"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; AcooBrowser; .NET CLR 1.1.4322; .NET CLR 2.0.50727)","Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Acoo Browser; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506)","Mozilla/4.0 (compatible; MSIE 7.0; AOL 9.5; AOLBuild 4337.35; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)","Mozilla/5.0 (Windows; U; MSIE 9.0; Windows NT 9.0; en-US)","Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 2.0.50727; Media Center PC 6.0)","Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 1.0.3705; .NET CLR 1.1.4322)","Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30)","Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN) AppleWebKit/523.15 (KHTML, like Gecko, Safari/419.3) Arora/0.3 (Change: 287 c9dfb30)","Mozilla/5.0 (X11; U; Linux; en-US) AppleWebKit/527+ (KHTML, like Gecko, Safari/419.3) Arora/0.6","Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2pre) Gecko/20070215 K-Ninja/2.1.1","Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9) Gecko/20080705 Firefox/3.0 Kapiko/3.0","Mozilla/5.0 (X11; Linux i686; U;) Gecko/20070322 Kazehakase/0.4.5","Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko Fedora/1.9.0.8-1.fc10 Kazehakase/0.5.6","Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.20 (KHTML, like Gecko) Chrome/19.0.1036.7 Safari/535.20","Opera/9.80 (Macintosh; Intel Mac OS X 10.6.8; U; fr) Presto/2.9.168 Version/11.52",
]class gushici:# 获取所有urldef urllist(self,url,x):a = random.choice(agent)header = {"User-Agent": a}response = requests.get(url, headers=header)response.encoding = 'utf-8'html = lxml.html.fromstring(response.text)t = html.xpath(x)return t# 请求网页并保存def re(self,url):a = random.choice(agent)header = {"User-Agent": a}response = requests.get(url, headers=header)response.encoding = 'utf-8'html = lxml.html.fromstring(response.text)t1 = html.xpath(x)t1 = ''.join(t1)print(t1)# t = html.xpath(x2)# t = ''.join(t)if t1=='':n = random.uniform(1,3)time.sleep(n)g.re(url)else:# print("缓存成功:", t1)file = open("xwz.txt", "ab+")file.write(str(t1+"\n").encode('utf-8'))# file.write(str(t+"\n").encode('utf-8'))file.close()if __name__ == "__main__":list = ['/et/xiaowangziyingwenban/110243.html', '/et/xiaowangziyingwenban/110242.html','/et/xiaowangziyingwenban/110241.html', '/et/xiaowangziyingwenban/110240.html','/et/xiaowangziyingwenban/110239.html', '/et/xiaowangziyingwenban/110238.html','/et/xiaowangziyingwenban/110237.html', '/et/xiaowangziyingwenban/110236.html','/et/xiaowangziyingwenban/110235.html', '/et/xiaowangziyingwenban/110234.html','/et/xiaowangziyingwenban/110233.html', '/et/xiaowangziyingwenban/110232.html','/et/xiaowangziyingwenban/110231.html', '/et/xiaowangziyingwenban/110230.html','/et/xiaowangziyingwenban/110229.html', '/et/xiaowangziyingwenban/110228.html','/et/xiaowangziyingwenban/110227.html', '/et/xiaowangziyingwenban/110226.html','/et/xiaowangziyingwenban/110225.html', '/et/xiaowangziyingwenban/110224.html','/et/xiaowangziyingwenban/110223.html', '/et/xiaowangziyingwenban/110222.html','/et/xiaowangziyingwenban/110221.html', '/et/xiaowangziyingwenban/110220.html','/et/xiaowangziyingwenban/110219.html', '/et/xiaowangziyingwenban/110218.html','/et/xiaowangziyingwenban/110217.html', '/et/xiaowangziyingwenban/110216.html']x='//div[@id="content"]/p/text()'# x1='//h3/span[@class="content-wrap"]/text()'# x2='//div[@class="read-content j_readContent" and @id=""]/p/text()'g=gushici()for i in range(len(list)):url="https://www.dashuzhai.com"+list[i]g.re(url)

2.词频统计

这部分用的是java,代码百度来的,面向百度编程

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashMap;
import java.util.Iterator;
import java.util.StringTokenizer;public class Main {public void sort(int[] arry) {int temp;for (int i = 0; i < arry.length; i++) {for (int j = i; j < arry.length; j++) {if (arry[i] > arry[j]) {temp = arry[i];arry[i] = arry[j];arry[j] = temp;}}}for (int k = 0; k < arry.length; k++) {System.out.print(arry[k] + " ");}}public static void main(String[] args) { // 用HashMap存放<单词:词频>这样一个映射关系HashMap<String, Integer> hashMap = new HashMap<String, Integer>();// 用正则表达式来过滤字符串中的所有标点符号String regex = "[【】、.。,,。\"!--;:?\'\\]]";try {// 读取要处理的文件BufferedReader br = new BufferedReader(new FileReader("src\\xzw.txt"));String value;while ((value = br.readLine()) != null) {value = value.replaceAll(regex, " ");// 使用StringTokenizer来分词(StringTokenizer详见JDK文档)StringTokenizer tokenizer = new StringTokenizer(value);while (tokenizer.hasMoreTokens()) {String word = tokenizer.nextToken();if (!hashMap.containsKey(word)) {hashMap.put(word, new Integer(1));} else {int k = hashMap.get(word).intValue() + 1;hashMap.put(word, new Integer(k));}}}// 遍历HashMap,输出结果Iterator iterator = hashMap.keySet().iterator();int  sum=0;while (iterator.hasNext()) {sum++; String word = (String) iterator.next();System.out.println(sum+":"+word + ":" + hashMap.get(word));}} catch (FileNotFoundException e) {e.printStackTrace();} catch (IOException e) {e.printStackTrace();}}
}

3.结果分析


发现第11行和第21行都是and,用word统一大小写,再来一次

the  1030
i   547
to  479
a   424
and 361
of  343
that    321
you 311
is  303
he  302
little  284
it  262
prince  209
said    196
was 194
in  180
my  165
not 161
me  153
but 148
have    145
one 140
are 139
for 138
his 122
at  107
be  107
all 103
on  101
they    99
this    98
with    94
as  93
so  89
what    87
very    81
will    81
had 79
from    79
if  78
him 77
no  75
then    75
do  73
planet  70
them    64
would   62
like    58
there   56
am  56
when    54
flower  53
who 52
she 50
good    49
by  49
time    46
out 45
an  44
too 43
any 43
your    42
more    42
stars   41
sheep   41
never   41
which   40
has 39
were    38
made    38
come    37
again   36
know    36
did 35
shall   35
fox 35
can 35
much    34
man 34
about   34
where   34
only    34
just    33
king    33
or  33
up  33
day 32
been    32
nothing 32
now 32
t   31
some    31
because 31
himself 31
see 31
over    31
morning 31
make    30
how 29
look    29
grown   28
her 27
could   27
asked   27
yes 26
down    26
drawing 24
here    24
does    23
away    23
men 23
first   23
say 23
go  23
we  23
understand  22
geographer  22
other   22
earth   22
once    22
should  22
s   21
well    21
two 21
anything    21
ups 21
life    21
back    20
myself  20
answered    20
came    20
hundred 19
replied 19
must    19
water   19
their   19
great   19
why 19
old 19
even    18
want    18
put 18
into    18
three   17
small   17
desert  17
added   17
five    17
always  17
looked  17
also    17
ah  17
oh  17
went    16
consequence 16
night   16
baobabs 16
long    16
those   16
friend  16
these   15
rose    15
lamp    15
last    15
saw 15
than    15
snake   15
live    14
question    14
think   14
thing   14
flowers 14
TRUE    14
people  14
took    14
another 14
six 14
place   14
own 14
without 13
same    13
order   13
orders  13
thousand    13
beautiful   13
conceited   13
able    13
still   13
thorns  13
need    13
looking 13
world   13
boa 13
lamplighter 12
let 12
mean    12
use 12
heart   12
every   12
love    12
years   12
important   12
volcanoes   12
matters 12
everything  12
seemed  12
after   11
sunset  11
ever    11
before  11
tell    11
businessman 11
take    11
explorer    11
don 11
twenty  11
narrator    11
star    11
its 11
thought 11
way 11
laughed 11
sure    11
set 11
four    11
draw    11
us  11
sand    10
matter  10
moment  10
demanded    10
house   10
answer  10
may 10
evening 10
find    10
something   10
felt    10
sleep   10
already 10
such    10
might   10
far 10
most    10
alone   10
seen    10
children    10
nobody  10
get 10
upon    9
found   9
happy   9
switchman   9
right   9
tame    9
knows   9
since   9
certainly   9
believe 9
tippler 9
silence 9
number  9
around  9
through 9
sad 9
enough  9
bad 9
perhaps 9
sky 9
hear    9
makes   9
single  9
continued   9
roses   9
others  8
million 8
magnificent 8
walk    8
things  8
hat 8
tamed   8
yet 8
millions    8
under   8
questions   8
hum 8
please  8
among   8
asteroid    8
extinct 8
leave   8
told    8
0   8
ask 8
inhabited   8
eyes    8
constrictor 8
head    8
wall    7
glass   7
having  7
general 7
possible    7
sometimes   7
journey 7
goodbye 7
known   7
difficult   7
friends 7
forget  7
exactly 7
danger  7
remember    7
afraid  7
inside  7
work    7
toward  7
secret  7
eat 7
cannot  7
pulley  7
miles   7
judge   7
against 7
until   7
book    7
learned 7
sat 7
globe   7
trouble 7
knew    7
lighted 7
idea    7
herself 7
example 6
days    6
yours   6
laugh   6
making  6
gone    6
wait    6
try 6
arms    6
times   6
mountain    6
each    6
thirty  6
given   6
golden  6
drinking    6
minutes 6
visits  6
talk    6
best    6
unique  6
ought   6
many    6
seven   6
lost    6
death   6
engine  6
responsible 6
end 6
ago 6
air 6
reason  6
give    6
along   6
words   6
fresh   6
drink   6
gave    6
off 6
second  6
different   6
somewhere   6
fault   6
really  6
wind    5
turn    5
hand    5
ordered 5
serious 5
invisible   5
slowly  5
thirsty 5
began   5
thirst  5
light   5
means   5
carefully   5
going   5
grass   5
reply   5
constrictors    5
home    5
being   5
concerned   5
present 5
laughter    5
hour    5
met 5
coming  5
seeds   5
muzzle  5
whole   5
books   5
anyone  5
altogether  5
year    5
ephemeral   5
merchant    5
bushes  5
new 5
minute  5
repeated    5
color   5
lived   5
chickens    5
lamplighters    5
outside 5
rest    5
move    5
bring   5
grow    5
admire  5
mountains   5
big 5
else    5
become  5
brought 5
complete    5
raised  5
sun 5
gentleman   5
tired   5
sound   5
proud   5
week    5
spoke   4
fifty   4
left    4
talking 4
got 4
wish    4
tie 4
authority   4
child   4
disturbed   4
rope    4
hard    4
room    4
better  4
queer   4
instant 4
picture 4
whether 4
raise   4
kings   4
busy    4
cry 4
excuse  4
funny   4
dying   4
effort  4
remembered  4
planets 4
garden  4
third   4
glad    4
hurry   4
die 4
later   4
absurd  4
importance  4
petals  4
bite    4
dropped 4
soon    4
sense   4
return  4
subject 4
extraordinary   4
except  4
nevertheless    4
plants  4
themselves  4
indeed  4
step    4
voice   4
walking 4
instead 4
hands   4
objects 4
ashamed 4
close   4
red 4
doesn   4
truth   4
airplane    4
baobab  4
charming    4
speak   4
sunsets 4
saying  4
pencil  4
wanted  4
yourself    4
longer  4
bolt    4
next    4
street  4
butterflies 4
wrong   4
simple  4
hunt    4
yawn    4
visit   4
plane   4
deal    4
whom    4
wheat   4
scarcely    4
tigers  4
france  4
carry   4
however 4
sit 4
easily  4
large   4
satisfied   4
astronomer  4
change  4
box 4
boy 4
interesting 4
drew    4
surprised   4
silent  4
story   4
reasonable  4
express 4
changed 4
doing   4
cold    4
our 4
help    4
goes    4
person  4
departure   4
send    4
ready   4
explanation 3
thus    3
object  3
ermine  3
lights  3
b   3
o   3
straight    3
brilliantly 3
strange 3
neglected   3
creature    3
612 3
treasure    3
pocket  3
taking  3
loved   3
write   3
save    3
noise   3
tonight 3
lay 3
sahara  3
obey    3
deserts 3
sunrise 3
watch   3
doubt   3
alike   3
lazy    3
merely  3
chair   3
travel  3
listen  3
tree    3
done    3
clear   3
clean   3
flushed 3
active  3
bucket  3
eats    3
trying  3
volcano 3
bird    3
listened    3
count   3
month   3
beginning   3
human   3
comforted   3
hope    3
america 3
kindness    3
heavy   3
snakes  3
together    3
feet    3
instance    3
feel    3
terrible    3
sort    3
interrupted 3
steps   3
advise  3
heard   3
sorrow  3
fell    3
glance  3
face    3
showed  3
whenever    3
gazed   3
rule    3
forever 3
profession  3
across  3
sweetness   3
forgot  3
travelers   3
cleaned 3
tossed  3
paper   3
music   3
understanding   3
learn   3
couldn  3
spring  3
add 3
dreaming    3
often   3
yawned  3
useful  3
monarch 3
forty   3
rich    3
acquaintance    3
screen  3
body    3
clock   3
haven   3
farther 3
echo    3
anywhere    3
eye 3
mystery 3
gently  3
thunderstruck   3
succeeded   3
worth   3
cried   3
call    3
run 3
white   3
exclaimed   3
imagine 3
fields  3
distance    3
show    3
suddenly    3
play    3
cast    3
abruptly    3
completely  3
care    3
born    3
certain 3
hunters 3
kind    3
opened  3
both    3
turkish 3
eaten   3
drafts  3
suffer  3
sea 3
claws   3
dear    3
radiance    3
fly 3
essential   3
beauty  3
needs   3
elephant    3
salute  3
bit 3
costume 3
ordinary    3
odd 3
begin   3
turned  3
thinking    3
inquiry 3
discovery   3
encounters  3
belongs 3
hammer  3
chance  3
speaking    3
geography   3
drawn   3
pleasure    3
seed    3
bells   3
seem    3
laughing    3
buy 3
sees    3
towns   3
frightened  3
figures 3
caterpillars    3
reach   3
deeply  3
asleep  3
presence    3
drank   3
south   3
weak    3
dare    3
rivers  3
fragile 3
moonlight   3
hair    3
wells   3
village 3
herd    3
habitation  3
pills   2
half    2
pretend 2
wasted  2
require 2
ahead   2
anybody 2
yellow  2
gold    2
arrived 2
quiet   2
k   2
faced   2
lips    2
w   2
fifth   2
correct 2
empty   2
faithful    2
besides 2
conversation    2
inquired    2
harm    2
young   2
peal    2
responded   2
pilot   2
china   2
fountain    2
favorable   2
entire  2
flashed 2
africa  2
leon    2
heaven  2
unhappy 2
larger  2
top 2
worrying    2
loves   2
discouraged 2
courteously 2
army    2
snow    2
rarely  2
ties    2
catastrophe 2
working 2
says    2
interested  2
caught  2
pity    2
demonstration   2
accident    2
worried 2
ankle   2
standing    2
clap    2
pluck   2
surely  2
attend  2
full    2
memory  2
heavens 2
hours   2
start   2
short   2
alight  2
trains  2
lonely  2
grows   2
destroy 2
tiny    2
requires    2
coughed 2
planeti 2
unfortunately   2
speedy  2
wondering   2
bloom   2
disappeared 2
curiosity   2
history 2
sprout  2
ears    2
neither 2
explorers   2
account 2
record  2
railway 2
knowledge   2
apparition  2
smiled  2
oceans  2
sweetly 2
subjects    2
thursday    2
foxes   2
complicated 2
putting 2
promise 2
forgotten   2
learns  2
remained    2
rather  2
passed  2
eruptions   2
watered 2
although    2
owned   2
universe    2
revealed    2
fear    2
song    2
embarrassed 2
eight   2
stand   2
leisure 2
sadness 2
cough   2
liked   2
smile   2
grain   2
waste   2
daybreak    2
ideas   2
seriously   2
painter 2
325 2
belong  2
impressive  2
happier 2
dejection   2
character   2
reassure    2
above   2
received    2
wonderful   2
pointed 2
animal  2
fact    2
shelter 2
middle  2
appear  2
treat   2
reputation  2
restrain    2
hesitated   2
collection  2
yawning 2
reasons 2
condemn 2
gesture 2
common  2
sands   2
sunshine    2
during  2
fair    2
grammar 2
sprig   2
dressed 2
itself  2
breakfast   2
forehead    2
pictures    2
mysterious  2
finger  2
swallow 2
perfect 2
clearly 2
pole    2
spite   2
discover    2
disappearance   2
seems   2
public  2
round   2
insisted    2
setting 2
poor    2
near    2
grief   2
rat 2
stop    2
happening   2
hungry  2
breathed    2
neck    2
sweet   2
anniversary 2
act 2
minister    2
shell   2
therefore   2
bored   2
sorry   2
age 2
shoulders   2
slightly    2
career  2
called  2
arithmetic  2
moral   2
boas    2
tried   2
darkness    2
spot    2
courage 2
steadily    2
powerful    2
flies   2
read    2
torn    2
entertaining    2
chose   2
fifteen 2
abashed 2
dance   2
broke   2
primeval    2
toilet  2
proofs  2
telescope   2
taken   2
elephants   2
obeyed  2
stirred 2
horror  2
poison  2
absolute    2
describe    2
understood  2
either  2
whatever    2
watched 2
nor 2
crying  2
rite    2
thoughts    2
greet   2
grew    2
risk    2
flame   2
quickly 2
modest  2
lives   2
bottles 2
exercise    2
memories    2
pursuing    2
used    2
nave    2
few 2
keep    2
understands 2
simply  2
addition    2
peace   2
plant   2
sudden  2
lasted  2
astonished  2
beg 2
thunder 2
stared  2
deep    2
tears   2
mistakes    2
explained   2
content 2
contrary    2
tenderness  2
fragrance   2
unlucky 2
appeared    2
beside  2
animals 2
realised    2
tomorrow    2
alive   2
side    2
discovers   2
sigh    2
knees   2
several 2
while   2
high    2
roots   2
establish   2
dream   2
behind  2
preparations    2
politely    2
pretty  2
loafing 2
buried  2
stood   2
extremely   2
hundreds    2
mushroom    2
closely 2
seas    2
twelve  2
conditions  2
stopped 2
necessary   2
closed  2
stones  2
fourth  2
wished  2
details 2
wishes  2
upright 2
ocean   2
solve   2
region  2
horns   2
drop    2
drawings    2
honey   2
successful  2
stone   2
ones    2
beyond  2
problem 2
proof   2
seized  2
rightly 2
sire    2
north   2
noon    2
course  2
lead    2
lamps   2
obliged 2
growing 2
justice 2
sharpened   2
creatures   2
accepted    2
note    2
everybody   2
regret  2
greatest    2
cost    2
idle    2
confidence  2
follow  2
dedicating  1
almanac 1
resemble    1
consumingly 1
youth   1
begins  1
introduced  1
drunk   1
ten 1
reverie 1
dedication  1
squares 1
yourselves  1
apparent    1
2   1
size    1
7   1
recognizes  1
eleven  1
amusing 1
arrives 1
humble  1
chapter 1
gleams  1
carriage    1
golf    1
[   1
e   1
weeping 1
eating  1
forests 1
strategems  1
throw   1
u   1
enchantment 1
exciting    1
geraniums   1
thank   1
echoed  1
information 1
faces   1
afterthoughtsand    1
discuss 1
murmured    1
roaring 1
wise    1
suffered    1
european    1
walked  1
darkened    1
aside   1
success 1
remarked    1
scholars    1
sank    1
wisdom  1
flown   1
nowhere 1
roof    1
perform 1
sprinkling  1
realized    1
shrugging   1
pocked  1
permit  1
extinguished    1
indifference    1
approach    1
pill    1
camei   1
experiment  1
russia  1
railing 1
pen 1
flow    1
protecting  1
passengers  1
hasn    1
timid   1
loyalty 1
crazy   1
walls   1
rosy    1
handkerchief    1
geographerthe   1
snakewhen   1
bought  1
littl   1
produce 1
inconsistent    1
pacific 1
verge   1
reminded    1
names   1
confided    1
regard  1
reign   1
lets    1
gleam   1
discusses   1
thundered   1
law 1
pardon  1
less    1
christmas   1
resolute    1
geographies 1
simplified  1
befriends   1
became  1
arizona 1
hastily 1
bush    1
bellsbut    1
extra   1
disarranged 1
land    1
saddest 1
direction   1
burn    1
whence  1
distinguished   1
traveled    1
sketch  1
werthwhen   1
prey    1
digesting   1
grieve  1
supply  1
worked  1
perfumed    1
meeting 1
strolling   1
landed  1
figuresit   1
1909    1
exclaim 1
ballet  1
opposite    1
recognize   1
actions 1
entertainment   1
kinghe  1
giving  1
anyway  1
pencils 1
attack  1
digestion   1
escape  1
gives   1
receive 1
neckties    1
clad    1
occurred    1
perplexed   1
beating 1
shells  1
fainting    1
refuses 1
entirely    1
1920    1
reflective  1
tragedy 1
speech  1
purple  1
majestically    1
fashion 1
friendship  1
tedious 1
forsaken    1
source  1
disappointed    1
guides  1
shook   1
late    1
blows   1
locomotive  1
realize 1
sighed  1
loveliest   1
secrets 1
carelessly  1
shops   1
sputtered   1
page    1
asking  1
impossible  1
thicker 1
disaster    1
scorned 1
flowerthe   1
tames   1
pain    1
gravely 1
lamplighterthe  1
windows 1
earliest    1
engineer    1
colour  1
fallen  1
marvel  1
disobedience    1
aroused 1
geographers 1
hen 1
whoever 1
enter   1
pale    1
threw   1
meets   1
lesson  1
piled   1
roads   1
dangling    1
respectfully    1
metallic    1
flowerat    1
afar    1
sorrows 1
valuable    1
shipwrecked 1
saluted 1
ways    1
assure  1
motionless  1
tire    1
wealth  1
desire  1
doll    1
rusty   1
blown   1
strides 1
contemplation   1
salutes 1
eternal 1
fellow  1
infested    1
chap    1
hanging 1
interests   1
quick   1
straying    1
shown   1
companions  1
lifeon  1
bear    1
affair  1
majesty 1
island  1
fumble  1
repairs 1
square  1
twice   1
repairing   1
belonged    1
part    1
point   1
potrait 1
frighten    1
trudged 1
noticing    1
eighth  1
crowded 1
colleague   1
diamond 1
someone 1
himhis  1
reproaches  1
asunder 1
regulated   1
innocent    1
finds   1
examining   1
bees    1
flushes 1
happen  1
pass    1
festival    1
easy    1
pondered    1
bulky   1
reassured   1
touched 1
radish  1
comes   1
soil    1
vanity  1
waited  1
existed 1
assembly    1
annoyed 1
hearing 1
mine    1
spreads 1
recollections   1
stage   1
meet    1
roselook    1
volcanic    1
richest 1
masterpiece 1
handsomest  1
hold    1
tale    1
tall    1
impregnable 1
seated  1
train   1
reviving    1
strap   1
scholar 1
puzzled 1
colours 1
carrying    1
occasion    1
whomever    1
needles 1
waiting 1
astounded   1
states  1
passes  1
sold    1
midnight    1
killed  1
strictly    1
tracks  1
travels 1
rites   1
showing 1
brothers    1
exhausted   1
lamplightersso  1
attempt 1
rheumatism  1
lock    1
glittering  1
flattening  1
revolver    1
timidly 1
fires   1
field   1
asks    1
twined  1
reached 1
warned  1
upset   1
government  1
upsonce 1
wouldn  1
grease  1
cigarette   1
backthe 1
bent    1
gathered    1
blest   1
cabbages    1
siberia 1
opera   1
nursing 1
tipplerthe  1
311 1
concentrated    1
international   1
upward  1
dry 1
breeze  1
fill    1
hears   1
wanders 1
becomes 1
convenient  1
task    1
326 1
327 1
328 1
329 1
position    1
softly  1
problems    1
arrested    1
patent  1
dangerous   1
movements   1
appears 1
330 1
repeat  1
falling 1
poetic  1
shocked 1
rapidly 1
master  1
negro   1
caravan 1
dug 1
evident 1
pulling 1
mere    1
invention   1
indulgenty  1
depend  1
baobabsas   1
crammed 1
giddy   1
trees   1
expectantly 1
hiding  1
bank    1
meaning 1
tales   1
adventures  1
height  1
frightens   1
boxes   1
fashioned   1
13  1
distinguish 1
singing 1
spray   1
frozen  1
receives    1
20  1
worlds  1
examine 1
mid 1
pieces  1
monotony    1
butterfly   1
grumbled    1
free    1
mix 1
holes   1
airplanes   1
dedicate    1
actually    1
monotonous  1
respected   1
experts 1
open    1
devote  1
lasts   1
forced  1
suffering   1
shrug   1
locks   1
shrub   1
leaves  1
awkward 1
ruin    1
riddles 1
surprise    1
yawns   1
finding 1
hunger  1
resentfulness   1
owning  1
guessed 1
judging 1
allow   1
knock   1
rough   1
father  1
mass    1
jumped  1
proper  1
assistance  1
fundamentally   1
apple   1
interest    1
wants   1
wonder  1
tearshere   1
mars    1
money   1
comment 1
guns    1
achievement 1
reasoning   1
mechanic    1
fingers 1
revolution  1
admirers    1
mopped  1
businessmen 1
windowpanes 1
price   1
games   1
resemblance 1
temples 1
agree   1
imagination 1
underneath  1
knowing 1
pride   1
wore    1
word    1
danced  1
flock   1
isolated    1
birds   1
naturally   1
uncertainly 1
fall    1
ridges  1
rushed  1
believed    1
europe  1
wherever    1
nice    1
opinion 1
sends   1
paints  1
appearance  1
wings   1
exists  1
runs    1
astronomical    1
prepared    1
businessmanthe  1
existence   1
space   1
chamber 1
rosebushes  1
ill 1
disheartened    1
finished    1
moistened   1
arrival 1
adornment   1
according   1
laughs  1
holding 1
spend   1
colored 1
track   1
computations    1
grave   1
advantage   1
ink 1
foxit   1
rush    1
command 1
indies  1
wakened 1
ambassador  1
abodes  1
irritated   1
landscape   1
saved   1
properly    1
rag 1
absent  1
moving  1
sorts   1
fairy   1
invented    1
ram 1
throbs  1
asteroids   1
fairly  1
crossly 1
guess   1
science 1
returns 1
detail  1
endure  1
ures    1
firmly  1
forest  1
least   1
jupiter 1
stretched   1
indulgence  1
pulled  1
descent 1
ridiculous  1
emerge  1
register    1
astonishment    1
notes   1
isn 1
moved   1
acclaim 1
post    1
tiresome    1
weeds   1
gifts   1
vexed   1
forbidding  1
wrote   1
bores   1
sobbing 1
middling    1
peacefully  1
exchange    1
nourishment 1
rifle   1
chimney 1
united  1
smallest    1
breakdown   1
overtake    1
sleeping    1
cheering    1
stretch 1
disturbing  1
mistake 1
toil    1
pour    1
coquettish  1
praise  1
loosened    1
special 1
untruth 1
moves   1
occupation  1
springs 1
rid 1
obedience   1
nae 1
seventy 1
seventh 1
crossed 1
weapons 1
misfortunes 1
tone    1
islet   1
swell   1
administer  1
promptly    1
rangeafter  1
vacation    1
climbed 1
thriftily   1
thoroughly  1
linger  1
rests   1
filled  1
boasted 1
tended  1
meditation  1
sickly  1
preceding   1
objected    1
royal   1
quench  1
precision   1
decorated   1
homesick    1
resounded   1
empties 1
catching    1
intimately  1
touch   1
moralist    1
real    1
alas    1
collect 1
jumping 1
trick   1
running 1
headlong    1
today   1
universal   1
blossom 1
drawer  1
unnecessary 1
navely  1
462 1
risks   1
accurate    1
ring    1
recitals    1
maintain    1
legend  1
ship    1
vineyards   1
decided 1
retorted    1
zealand 1
remorse 1
shoots  1
goodness    1
deeds   1
forgiveness 1
relaxation  1
dune    1
shabby  1
completed   1
demand  1
waved   1
recount 1
calculations    1
flash   1
shines  1
werthi  1
inspiring   1
patience    1
grace   1
takes   1
broken  1
silly   1
black   1
curls   1
tour    1
7000    1
metres  1
swallowing  1
becoming    1
blinked 1
forgetting  1
huge    1
sunsetsoh   1
watches 1
everywhere  1
name    1
worst   1
poppies 1
selling 1
neighborhood    1
forbearance 1
blind   1
shop    1
string  1
smelled 1
occupy  1
reflections 1
absence 1
simplicity  1
shot    1
malicious   1
defend  1
feverish    1
mantle  1
rosesbut    1
green   1
thatfortunately 1
bracelet    1
footstool   1
hoisted 1
mouth   1
african 1
duty    1
window  1
rise    1
panted  1
fancy   1
dangers 1
raft    1
peevishly   1
princeso    1
stuck   1
fat 1
awakened    1
burrow  1
catch   1
truly   1
greater 1
case    1
waits   1
inoffensively   1
double  1
speculates  1
bewildered  1
planetbeside    1
miraculous  1
style   1
jungle  1
study   1
tolerated   1
portraits   1
harsh   1
confuse 1
admirer 1
tragic  1
minster 1
dared   1
protect 1
manthe  1
castles 1
electricity 1
consulted   1
happened    1
pleased 1
rage    1
shut    1
luck    1
voluminous  1
minded  1
presented   1
described   1
obstructed  1
plea    1
affection   1
explaining  1
choked  1
sums    1
weigh   1
inseparable 1
politics    1
game    1
awaken  1
muffler 1
forbid  1
rocks   1
billion 1
patient 1
consoles    1
sheet   1
tipplers    1
amount  1
wit 1
earnestly   1
gets    1
kingdom 1
shine   1
afternoon   1
favor   1
900 1
intoxicated 1
oneself 1
inhabitants 1
fig 1
bac 1
weathervane 1
boys    1
awake   1
fond    1
leaped  1
offer   1
warfare 1
complex 1
honest  1
trembled    1
doubts  1
excited 1
angry   1
fold    1
impenetrable    1
yonder  1
turning 1
plans   1
greatly 1
facing  1
dead    1
sixth   1
sailor  1
amuse   1
furnished   1
cameit  1
foot    1
humanity    1
charge  1
familiar    1
breathe 1
admiration  1
somewhat    1
scarf   1
girls   1
observe 1
furnish 1
won 1
heating 1
ea  1
phew    1
tires   1
windand 1
image   1
faded   1
eh  1
suspicious  1
piece   1
parts   1
necessity   1
lucky   1
visiting    1
goose   1
trembling   1
modestly    1
twilight    1
desertit    1
changesand  1
random  1
venus   1
directed    1
living  1
wearing 1
FALSE   1
obviously   1
chewing 1
kept    1
disobey 1
form    1
500 1
misunderstandings   1
avoid   1
amazement   1
congress    1
repose  1
improved    1
thanks  1
fatigue 1
convinced   1
corner  1
511 1
advances    1
recognise   1
model   1
soothes 1
guessing    1
tasks   1
surface 1
foolish 1
peaks   1
somebody    1
noses   1
rumpled 1
weariness   1
majestic    1
lugubrious  1
irreparable 1
urgent  1
abyss   1
table   1
sadly   1
bread   1
break   1
suggestion  1
clapped 1
comfort 1
generally   1
seriousness 1
report  1
fun 1
edge    1
split   1
falls   1
fasten  1
months  1
level   1
adjusted    1
possessed   1
follows 1
entry   1
puff    1
rushing 1
shuts   1
errors  1
mental  1
veritable   1
considerable    1
passerby    1
reserve 1
brick   1
occupied    1
nature  1
cross   1
frightful   1
intelligent 1
radiation   1
sitting 1
splendid    1
discipline  1
111 1
rocked  1
breaking    1
settled 1
unscrew 1
australia   1
re  1
wander  1
bundles 1
plunged 1
bridge  1
starting    1
discovered  1
overcome    1
cabin   1
seek    1
adore   1
plainly 1
key 1
apart   1
silk    1
moaned  1
blundering  1
started 1
closer  1
bud 1
pull    1
depths  1
sighted 1
doves   1
regularly   1
instantly   1
hides   1
treated 1
waters  1
coil    1
smiling 1
hastened    1
dreadfully  1
suppose 1
ve  1
bending 1
failure 1
hint    1
desk    1
converses   1
changes 1
throne  1
lies    1
lovely  1
slight  1
wide    1
cumbersome  1
insubordination 1
byi 1
embarassed  1
succeed 1
migration   1
location    1
passing 1
torment 1
held    1
lightly 1
seconds 1
road    1
yo  1
confidences 1
roar    1
immensity   1
sprouts 1
abandoned   1
between 1
spectacle   1
plucked 1
reeling 1
push    1
leather 1
stately 1
exact   1
acquainted  1
force   1
regretting  1
tools   1
climbs  1
rock    1
confess 1
impress 1
seeing  1
recall  1
copy    1
power   1
sensible    1
sits    1
precious    1
bigger  1
cool    1
hesitancy   1
digging 1
relentlessly    1
puts    1
elegance    1
sunlight    1
etiquette   1
robe    1
self    1
overpowering    1
crashes 1
tremendous  1
crashed 1
confessed   1
curious 1
ugly    1
judged  1
excitement  1
continents  1
sheltered   1
proposed    1
ground  1
painstaking 1
balderdash  1
rejected    1
purpose 1
1440    1
drama   1
studies 1
weed    1
shimmer 1
carried 1
stories 1
skirting    1
dictator    1
hurrying    1
played  1
response    1
granite 1
wild    1

他最爱的当然是他的玫瑰花呀

对《小王子》英文原版进行词频统计,发现他最爱的是......相关推荐

  1. 【编译原理】Python实现对一个英文文本的词频统计

    利用Python实现对一个英文文本的词频统计.文本链接:https://www.philippinetimes.com/news/257886068/australia-blocks-chinese- ...

  2. 【Python】对英文文本进行词频统计(分词、字典排序、文件读写)

    准备知识 1.python读取文件 推荐链接:Python读写txt文本文件 不想细究,直接上手的读取文件参考代码 #默认文件位置为当前python代码的路径(相对路径) #输出文件应为字符串类型 f ...

  3. python英文词频统计去除定冠词_使用Python进行英文词频统计

    对一篇英文文章进行词频统计重点在于内容去噪和归一化,可用split()进行分词.本文以<飘>为例,统计词频最高的前十位. 1.读取文件,通过lower().replace()函数将所有单词 ...

  4. c语言统计英文字母频率,C语言实现英文文本词频统计

    这几天写了一个基于C语言对文本词频进行统计的程序,开发及调试环境:mac集成开发环境Xcode:测试文本,马丁.路德金的<I have a dream>原文演讲稿. 主要运行步骤: 1. ...

  5. python英文文本词频统计代码_Python小程序:文本词频统计(英文+中文)

    在学习了组合数据类型和文件操作之后就可以做出下面的文本词频统计的小程序了: 1. 下面是英文文本的词频统计,统计了作者的一篇英文论文 #文本词频统计:英文文本 def gettext(): #从文件中 ...

  6. 使用Python进行英文词频统计

    对一篇英文文章进行词频统计重点在于内容去噪和归一化,可用split()进行分词.本文以<飘>为例,统计词频最高的前十位. 1.读取文件,通过lower().replace()函数将所有单词 ...

  7. 软件工程之个人项目--词频统计

    不得不说对于菜鸟级的我,这是一次心酸的经历啊...自打接到王老师布置的这个任务(个人项目)之后,我心里一直在想着自己要用哪种语言来完成我的任务.以前多多少少写过一些程序的,这又想起了数据库小学期与永哥 ...

  8. python词频统计时、文件放哪里_初学python,词频统计小实验

    最近突然对python感兴趣,就学了起来.我可怜的计算机基础只有VB,而且学的时候这门课还特别水,仅仅了解了语法,考试基本上是背题过的. 现在自学python还是比较吃力.今天捣鼓了一下午,搞出了一个 ...

  9. Python实例--文本词频统计

    最近在MOOC跟着北京理工大学的嵩天老师学习Python(https://www.icourse163.org/learn/BIT-268001?tid=1003243006#/learn/annou ...

  10. Hadoop的改进实验(中文分词词频统计及英文词频统计)(1/4)

    声明: 1)本文由我bitpeach原创撰写,转载时请注明出处,侵权必究. 2)本小实验工作环境为Windows系统下的百度云(联网),和Ubuntu系统的hadoop1-2-1(自己提前配好).如不 ...

最新文章

  1. 上海交大机试真题—最短路径(最小生成树解法)
  2. ae中合成设置的快捷键_AE项目工作流程讲解及项目与合成设置
  3. 《Java 核心技术卷1 第10版》学习笔记------ 组织继承:final类和方法【编译器优化:内联( inlining );】
  4. 借助Web技术,桌面用户界面将保持活跃
  5. Git 分支创建并推送到现有仓库
  6. js 一些的数组的方法
  7. Android:ListView的拓展与进阶
  8. PD2SE-Net:植物病害诊断和严重性评估网络(首次)
  9. 【码云周刊第 47 期】6个开源项目提升物联网开发效率
  10. 豆瓣评分9.3!运动规划圣经,自动驾驶学习必备书!
  11. Keyence激光打标机入门1
  12. HDU2825 Wireless Password【AC自动机 + DP】
  13. 魔兽地图编辑器 简单介绍
  14. 小学创客课程体系案例
  15. 【Debug记录】terminate called after throwing an instance of ‘xxxxxx‘
  16. 房产领域共享公司分析(共享经济专题)2/7
  17. ppt讲解html,HTML基础教程讲解.ppt
  18. C#开发的TD防御游戏详解——星际防御
  19. 基于卷积神经网络的密集人群估计/人群计数算法【内含教程和踩坑】
  20. 用lingo排版课程表 求大佬指点

热门文章

  1. 前端数据可视化插件(一)图表
  2. java delayqueue_java中DelayQueue的使用
  3. python连接服务器完整过程
  4. 主数据管理项目建设经验分享
  5. 粒子群算法的几个适应度评价函数
  6. Java项目--网页版音乐播放器(JQuery前端逻辑)
  7. h5制作导出html,H5制作工具Hype的导出功能详解
  8. 数据分析之数据质量分析
  9. 安得一颗光明心——《王阳明大传》的读后感作文4100字
  10. 带农历日期的html代码,很全的显示阴历(农历)日期的js代码