Open WALL-E opened 7 years ago
共计5205个
TOP13
243 -> 之 235 -> 不 159 -> 以 135 -> 其 118 -> 而 113 -> 为 101 -> 无 092 -> 天 089 -> 者 085 -> 人 082 -> 有 080 -> 下 076 -> 道
统计代码
#!/usr/bin/python
f = open("z.txt","r")
lines = f.readlines()
stat = {}
for line in lines:
words = line.strip().decode("utf8")
for word in words:
stat[word] = stat.get(word, 0) + 1
for k in stat.keys():
print str(stat[k]).zfill(5), "->", k.encode("utf8")
老子和孔子都是先秦著名思想家和哲学家。早在 1700 年前,晋朝学者葛洪就指出:「道者儒之本也,儒者道之末也。」从春秋战国一直到西汉初年的百家争鸣时代,在我国学术和意识形态领域中占主导地位的是以老子为代表的黄老道家学说。