일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- recursion
- 2015 봄학기 알고리즘
- codesignal
- 파이썬 포렌식
- collections.deque
- almostIncreasingSequence
- data_structure
- til
- matrixElementsSum
- adjacentElementsProduct
- Python
- C++
- Sequential Search
- All Longest Strings
- 2750
- Numpy
- flask
- cpp
- 10953
- shapeArea
- Counting cells in a blob
- centuryFromYear
- 피보나치 수
- Daily Commit
- 수 정렬하기
- baekjun
- codesingal
- 파이썬머신러닝완벽가이드
- 백준
- markdown
- Today
- Total
목록분류 전체보기 183
Introfor
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374__author__="Introfor" """history: 2016/12/27 : Canvas flower START""" from Tkinter import * root = Tk()root.title("Canvas_Flower") xy_size =300 canvas = Canvas(root, bg="white", width = xy_size, height =xy_size) def corner(): n=0 for i in range(10): #1 coord ..
1234567891011121314151617181920212223242526272829303132333435__author__="Introfor" # -*-coding: utf-8 -*-# server.py import socketimport thread HOST = 'localhost'PORT = 50000 s = socket.socket()s.bind((HOST, PORT))s.listen(1) conn, addr = s.accept()print 'Connected by', addr data = '' def msg(): while 1: data = conn.recv(1024) if data: print data.lower() thread.start_new_thread(msg, ()) while 1:..
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253__author__ = "introfor"; /*history: 2016/11/30 Starting two-dimensions theater reservation system. Finished.*/ #include #define SIZE 10 int main() { char c = 0; int weight = 0, height = 0; int theater[SIZE][SIZE] = { 0 }; while (1) { printf("극장 좌석 예약 하시겠습니까?(y/n)"); scanf_s("%c", &c); if (c == 'y') {..
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051__author__ = "introfor"; /*history: 2016/11/30 Starting one-dimension theater reservation system. Finished.*/ #include #define SIZE 10 int main() { char c = 0; int place = 0; int theater[SIZE] = { 0 }; while (1) { printf("극장 좌석 예약 하시겠습니까?(y/n)"); scanf_s("%c", &c); if (c == 'y') { printf("예매가능좌석\n"); pri..
123456789101112#-*- coding: utf-8 -*- __author__="Introfor" import urllib, re num =12345 while(True): response = urllib.urlopen("http://www.pythonchallenge.com/pc/def/linkedlist.php?nothing=%s" % num).read() num = "".join(re.findall(r"\d", response)) print responseColored by Color Scriptercs
12345678910111213# -*- 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('')] result = "".join(re.findall(r"[^A-Z][A-Z]{3}([a-z])[A-Z]{3}[^A-Z]",strings)) print resultColored by Color Scriptercs
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..