FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python/pythonchallenge/7.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
/
7.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
33 lines (25 loc) · 522 Bytes
Breadcrumbs
python
/
pythonchallenge
/
7.py
Copy path
File metadata and controls
33 lines (25 loc) · 522 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
import
urllib
import
StringIO
import
Image
url
=
'http://www.pythonchallenge.com/pc/def/oxygen.png'
a
=
urllib
.
urlopen
(
url
)
image
=
a
.
read
()
j
=
StringIO
.
StringIO
(
image
)
box
=
(
0
,
42
,
608
,
52
)
cord
=
(
0
,
45
,
608
,
45
)
o
=
Image
.
open
(
j
)
k
=
o
.
convert
(
'L'
)
t
=
[]
y
=
45
for
x
in
xrange
(
608
/
7
+
1
):
xy
=
(
x
*
7
,
y
)
b
=
k
.
getpixel
(
xy
)
t
.
append
(
b
)
def
tras
(
codes
):
code
=
''
for
i
in
codes
:
code
+=
chr
(
i
)
print
code
tras
(
t
)
code2
=
[
105
,
110
,
116
,
101
,
103
,
114
,
105
,
116
,
121
]
tras
(
code2
)
Back
|
FazBrowse Home
|
New Git URL