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