解题思路:
第一关,揭秘所有的灰色。然后继续揭秘。代码如下:
# -*- coding:utf-8 -*-
# **********************************
# ** http://weibo.com/lixiaodaoaaa #
# ** create at 2017/6/24 15:58 ***
# ****** by:lixiaodaoaaa ***********
from PIL import Image
myImg = Image.open("oxygen.png")
image_width, image_height = myImg.size
center_y = image_height / 2
print center_y
result = ""
for x in range(0, image_width, 7):
r, g, b, a = myImg.getpixel((x, center_y))
result +=str(chr(r))
print result
编译结果如下:
smart guy, you made it. the next level is [105, 110, 116, 101, 103, 114, 105, 116, 121]pe_
循环这个list 得到如下:
mylist = [105, 110, 116, 101, 103, 114, 105, 116, 121]
for r in mylist:
result +=str(chr(r))
print result
integrity
下一关就是 integrity