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