일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Daily Commit
- collections.deque
- flask
- cpp
- baekjun
- data_structure
- Python
- codesignal
- 수 정렬하기
- 파이썬머신러닝완벽가이드
- centuryFromYear
- 파이썬 포렌식
- markdown
- 2015 봄학기 알고리즘
- 10953
- almostIncreasingSequence
- shapeArea
- recursion
- 2750
- Numpy
- adjacentElementsProduct
- 백준
- til
- 피보나치 수
- matrixElementsSum
- codesingal
- Sequential Search
- C++
- Counting cells in a blob
- All Longest Strings
Archives
- Today
- Total
Introfor
3 본문
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