Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
ffm-baseline
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ML
ffm-baseline
Commits
7651ce0f
Commit
7651ce0f
authored
Aug 13, 2019
by
张彦钊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change test fil
parent
20d8e1bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
hello.py
hello.py
+19
-2
No files found.
hello.py
View file @
7651ce0f
...
...
@@ -154,6 +154,7 @@ def get_chapter(id):
tag_id
.
append
(
'异常'
)
tag_name
.
append
(
'异常'
)
# print(dataType)
print
(
"w"
)
print
(
dateId
)
# print(tag_id)
# print(tag_name)
...
...
@@ -164,11 +165,27 @@ def get_chapter(id):
else
:
pass
def
get_opreaton
():
db
=
pymysql
.
connect
(
host
=
'172.16.30.143'
,
port
=
3306
,
user
=
'work'
,
passwd
=
'BJQaT9VzDcuPBqkd'
,
db
=
'zhengxing'
)
sql
=
"SELECT GROUP_CONCAT(distinct card_id) from api_feedoperatev2 "
\
"where card_type = 19 and is_online = 1 and end_time >= '2019-08-13' and start_time <='2019-08-13'"
cursor
=
db
.
cursor
()
cursor
.
execute
(
sql
)
result
=
cursor
.
fetchone
()
db
.
close
()
l
=
result
[
0
]
.
split
(
","
)
print
(
len
(
l
))
print
(
l
)
return
l
if
__name__
==
'__main__'
:
get_d
()
a
=
mysql
(
device_Android
)
for
i
in
a
:
chapter_list
=
get_chapter
(
i
)
# for i in a:
# chapter_list = get_chapter(i)
b
=
get_opreaton
()
c
=
set
(
a
)
&
set
(
b
)
print
(
len
(
c
))
print
(
c
)
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