Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lichenggang
/
bom_identify
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
ce7b54c5
authored
Aug 04, 2022
by
陈森彬
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
237d7049
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
brand_redis.py
brand_redis.py
View file @
ce7b54c5
...
...
@@ -13,7 +13,8 @@ ENV = 'test' if sys.platform in ('darwin', 'win32') else 'produce'
def
get_redis_conf
():
conf
=
{
'host'
:
'192.168.1.235'
,
# 'host': '192.168.1.235',
'host'
:
'39.108.51.147'
,
'port'
:
6379
,
'password'
:
"icDb29mLy2s"
,
'db'
:
0
,
...
...
@@ -34,10 +35,13 @@ redis_pool = get_redis_conn()
def
main
():
brand_list
=
[
"
英飞凌
"
]
brand_list
=
[
"
ROHM(罗姆)
"
]
for
brand_name
in
brand_list
:
redis_pool
.
sadd
(
"brand_set"
,
brand_name
)
print
(
"添加品牌"
,
brand_name
)
res
=
redis_pool
.
sadd
(
"brand_set"
,
brand_name
)
if
res
:
print
(
"添加品牌"
,
brand_name
)
else
:
print
(
"添加品牌失败"
,
brand_name
)
if
__name__
==
"__main__"
:
...
...
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