FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python/pythonchallenge/6.py at master · bjd1111/python · GitHub
bjd1111
python
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python
/
pythonchallenge
/
6.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
45 lines (29 loc) · 645 Bytes
Breadcrumbs
python
/
pythonchallenge
/
6.py
Copy path
File metadata and controls
45 lines (29 loc) · 645 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import
re
from
zipfile
import
ZipFile
num0
=
90052
z
=
ZipFile
(
'channel.zip'
)
w
=
''
is_num
=
True
def
next
(
num
):
global
w
,
is_num
fil
=
'channel/'
+
str
(
num
)
+
'.txt'
a
=
open
(
fil
)
content
=
a
.
read
()
pattern
=
re
.
compile
(
'is (.*)'
,
re
.
S
)
result
=
re
.
findall
(
pattern
,
content
)
if
result
==
[]:
is_num
=
False
return
name
=
str
(
result
[
0
])
+
'.txt'
if
len
(
result
)
!=
0
:
w
=
w
+
z
.
getinfo
(
name
).
comment
print
content
a
.
close
()
return
result
[
0
]
def
go
():
num
=
num0
while
is_num
:
next
(
num
)
num
=
next
(
num
)
go
()
print
w
Back
|
FazBrowse Home
|
New Git URL