Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
岳巧源
/
jd_data_process
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8f155c59
authored
Oct 16, 2024
by
岳巧源
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add test3
parent
98d9550f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
test3.py
test3.py
View file @
8f155c59
...
@@ -9,19 +9,24 @@ config_prod = {
...
@@ -9,19 +9,24 @@ config_prod = {
"password"
:
"sfj09JjsfpQx0"
,
"password"
:
"sfj09JjsfpQx0"
,
"database"
:
"liexin_data_distribution"
"database"
:
"liexin_data_distribution"
},
},
"redis"
:
{
"redis
1
"
:
{
"host"
:
"172.18.137.38"
,
"host"
:
"172.18.137.38"
,
"port"
:
6379
,
"port"
:
6379
,
"password"
:
"icDb29mLy2s"
"password"
:
"icDb29mLy2s"
},
"redis2"
:
{
"host"
:
"spu-redis.ichunt.db"
,
"port"
:
6379
,
"password"
:
"icDb29mLy1s"
,
}
}
}
}
conf
=
config_prod
conf
=
config_prod
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
host
=
conf
[
"redis"
][
"host"
]
host
=
conf
[
"redis
2
"
][
"host"
]
port
=
conf
[
"redis"
][
"port"
]
port
=
conf
[
"redis
2
"
][
"port"
]
password
=
conf
[
"redis"
][
"password"
]
password
=
conf
[
"redis
2
"
][
"password"
]
db
=
redis
.
Redis
(
host
=
host
,
port
=
port
,
password
=
password
,
decode_responses
=
True
)
db
=
redis
.
Redis
(
host
=
host
,
port
=
port
,
password
=
password
,
decode_responses
=
True
)
# ans = db.hget("jd_ext_attr", "33836")
# ans = db.hget("jd_ext_attr", "33836")
ans
=
db
.
hget
(
"spu"
,
"2172358037068768407"
)
ans
=
db
.
hget
(
"spu"
,
"2172358037068768407"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment