wargame/pythonchallenge.com

http://www.pythonchallenge.com/pc/def/oxygen.html

Sanguine 2014. 6. 20. 14:48
import re, Image  
  
i = Image.open("oxygen.png")   
  
row = [i.getpixel((x, 45)) for x in range(0, i.size[0], 7)]  
AS_list = [r for r, g, b, a in row if r == g == b]  
  
result = "".join(map(chr,AS_list))  
  
print "".join(map(chr,map(int,re.findall("\d+",result))))