Introfor

3 본문

Programming_prob/Python_Challenge

3

YongArtist 2016. 11. 28. 10:01
1
2
3
4
5
6
7
8
9
10
11
12
13
# -*- coding: utf-8 -*-
 
__author__='Introfor'
 
import re, urllib2
 
url = "http://www.pythonchallenge.com/pc/def/equality.html"
response = urllib2.urlopen(url).read()
strings = response[response.rindex('<!--'):response.rindex('-->')]
 
result = "".join(re.findall(r"[^A-Z][A-Z]{3}([a-z])[A-Z]{3}[^A-Z]",strings))
 
print result
cs


'Programming_prob > Python_Challenge' 카테고리의 다른 글

4  (0) 2016.11.28
2  (0) 2016.11.21
1  (0) 2016.11.17
0  (0) 2016.11.17
Comments