-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.py
91 lines (57 loc) · 1.19 KB
/
test.py
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# -*- coding: UTF-8 -*-
################################
# 测 试
################################
def main():
pass
# 导入数据
def t_insertdata():
import dataio
dataio.insertdata()
# 查询某人的发言
def t_someonechat():
import dataio
id = u'黄师傅'
chatlist = dataio.someonechat(name=id)
print(u'总共发言说话次数:', len(chatlist))
for x in chatlist:
print(x['contents'])
# 查询某人的发言
def t_pet_phrase():
import s103
print(s103.pet_phrase(name=u'W540'))
def t_s104():
import s104
print(s104.s104(name=u'木帆船'))
def t_s105():
import s105
# s105.insertdata()
# s105.jieba()
s105.pandas()
def t_s106():
import s106
s106.analyse()
def t_s107():
import s107
s107.analyse()
def t_s108():
import s108
s108.analyse()
def t_s109():
import s109
s109.analyse(name=u'')
def t_s110():
import s110
# s110.read_data()
print(s110.link_in_count('A'))
if __name__ == '__main__':
# t_insertdata()
# t_someonechat()
# t_pet_phrase()
# t_s104()
# t_s105()
# t_s106()
# t_s107()
# t_s108()
# t_s109()
t_s110()