| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- markdown
- data_structure
- til
- 2015 봄학기 알고리즘
- 피보나치 수
- adjacentElementsProduct
- Numpy
- Python
- shapeArea
- 백준
- collections.deque
- 파이썬 포렌식
- centuryFromYear
- All Longest Strings
- 파이썬머신러닝완벽가이드
- baekjun
- 수 정렬하기
- codesignal
- C++
- recursion
- Counting cells in a blob
- Daily Commit
- cpp
- 10953
- matrixElementsSum
- codesingal
- almostIncreasingSequence
- Sequential Search
- flask
- 2750
- Today
- Total
Introfor
123456789101112131415 import urllib2 url = "http://www.pythonchallenge.com/pc/def/ocr.html" # url 값 str로 저장response = urllib2.urlopen(url).read() # urlopen으로 url을 열고 read로 값을 읽은 후 response에 저장string = response[response.rindex('')] # 뒤에서 부터 이 위치한 인덱스의 값을 통해 슬라이싱 # 한 후에 string에 저장 result='' for i in string: #isalpha()는 알파벳이면 true를 반환하는데 string에 알파벳이 있으면 result에 문자를 추가 if i.isalpha(): result +=i pr..
1234567891011121314151617181920212223242526272829303132__author__='Introfor' import string"""The first methoddef decoding(str): global result result ='' for i in str: if(ord(i)==32 or ord(i)==39 or ord(i)==46 or ord(i)==40 or ord(i)==41): result +=i elif(ord(i)==121): result+='a' elif (ord(i) == 122): result += 'b' else: result+=chr(ord(i)+2) return resultstr1="g fmnc wms bgblr rpylqjyrc gr zw f..