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-03 19:12:24 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e497df720eb73c4ca0d5139dea0009f357a48107
e497df72
1 parent
fdaf80cb
数据库连接改错了
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
1 deletions
utils/query.py
views/user/__pycache__/user.cpython-39.pyc
utils/query.py
View file @
e497df7
from
pymysql
import
*
conn
=
connect
(
host
=
'
localhost'
,
port
=
3306
,
user
=
'root'
,
password
=
'123456'
,
database
=
'weiboarticles
'
)
conn
=
connect
(
host
=
'
10.92.35.13'
,
port
=
3306
,
user
=
'XiaoXueQi'
,
password
=
'XiaoXueQi'
,
database
=
'Weibo_PublicOpinion_AnalysisSystem
'
)
cursor
=
conn
.
cursor
()
def
query
(
sql
,
params
,
type
=
"no_select"
):
params
=
tuple
(
params
)
...
...
views/user/__pycache__/user.cpython-39.pyc
View file @
e497df7
No preview for this file type
Please
register
or
login
to post a comment