Toggle navigation
Toggle navigation
This project
Loading...
Sign in
万朱浩
/
Venue-Ops
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
juanboy
2024-07-04 12:34:35 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
70e82a2c29c581c6381fddc23f3db74e4766f6fa
70e82a2c
1 parent
e43615d5
舆情函数调通
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
model/topicdefine.py
utils/cutComments.py
model/topicdefine.py
View file @
70e82a2
...
...
@@ -43,7 +43,8 @@ def topicdefine():
return
label_article
,
label_comments
# 更新数据库
def
update_data
(
label_article
,
label_comments
):
def
update_data
():
label_article
,
label_comments
=
topicdefine
()
add_label_comments
()
add_label_article
()
for
row
in
label_article
:
...
...
@@ -57,7 +58,9 @@ def update_data(label_article,label_comments):
params
=
[
str
(
label
),
str
(
id
)]
query
(
sql
,
params
)
# x,y=topicdefine()
# update_data(x,y)
drop_label
()
drop_label1
()
\ No newline at end of file
if
__name__
==
'__main__'
:
update_data
()
#删除文章和评论的标签列
# drop_label()
# drop_label1()
\ No newline at end of file
...
...
utils/cutComments.py
View file @
70e82a2
...
...
@@ -41,4 +41,3 @@ def clean(text):
if
__name__
==
'__main__'
:
writer_comments_cuts
()
\ No newline at end of file
# print(clean("想到一次我也看到了这样的,我把我的外套(喷了淡茉莉香水的)递过去了,我当时觉得她可能是因为地铁空调有点冷一直环抱着,我借给她说冷的话可以披一下,我坐到终点站的,然后她说不用了,我好尴尬哇"))
\ No newline at end of file
...
...
Please
register
or
login
to post a comment