Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
chat33test
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lkx33
chat33test
Commits
7a453a29
Commit
7a453a29
authored
May 17, 2021
by
lkx33
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete test.py
parent
63d03ff2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
28 deletions
+0
-28
test.py
test.py
+0
-28
No files found.
test.py
deleted
100644 → 0
View file @
63d03ff2
import
os
from
analyzer
import
formatData
# logData = formatData(1)
# time = [[i[1],i[5]] for i in logData]
# # lag = [i[5] for i in logData]
# print(time[:100])
# with open("./log/test.log", 'w') as f:
# f.write("www.runoob.com!\nVery good site!\n" + '\n')
def
fileSearch
(
folderName
=
""
,
keyword
=
"msg"
):
filePath
=
os
.
path
.
join
(
f
'./log'
,
folderName
)
fileList
=
os
.
listdir
(
filePath
)
msgList
=
[
i
for
i
in
fileList
if
keyword
in
i
]
data
=
[]
print
(
msgList
)
for
i
in
msgList
:
with
open
(
os
.
path
.
join
(
f
'./log/{folderName}/'
,
i
))
as
f
:
for
line
in
f
:
# line = line.strip('\n')
data
.
append
(
line
)
return
data
fileSearch
(
'log(n=1000,m=100)2021_05_14_18_02_38'
)
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