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
redhongx
2024-07-04 11:08:50 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c7533a4ab3d897109a309a39a94bc243f56183ba
c7533a4a
1 parent
c5f5d590
【wordCloudPicture.py】修改数据库连接的相关信息
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
wordCloudPicture.py
wordCloudPicture.py
View file @
c7533a4
...
...
@@ -9,7 +9,7 @@ def stopWordList():
return
[
line
.
strip
()
for
line
in
open
(
'./model/stopWords.txt'
,
encoding
=
'utf8'
)
.
readlines
()]
def
get_img
(
field
,
tableName
,
targetImgSrc
,
resImgSrc
):
con
=
connect
(
host
=
'
localhost'
,
user
=
'root'
,
password
=
'root'
,
database
=
'weiboarticles
'
,
port
=
3306
,
charset
=
'utf8mb4'
)
con
=
connect
(
host
=
'
47.92.235.6'
,
user
=
'XiaoXueQi'
,
password
=
'XiaoXueQi'
,
database
=
'Weibo_PublicOpinion_AnalysisSystem
'
,
port
=
3306
,
charset
=
'utf8mb4'
)
cuser
=
con
.
cursor
()
sql
=
f
'select {field} from {tableName}'
cuser
.
execute
(
sql
)
...
...
Please
register
or
login
to post a comment