The inhabitants on planet P people speak a strange language, called language P. For us, this language is not so difficult to learn. After all, it is very similar to plain English, but every group of vowels is followed by a letter p and a repetition of the same group of vowels. A groups of vowels is either a sequence of one or more consecutive vowels (a,e,i,o and u) or the combination ij. As such..
A Pythagorean triple (a,b,c)(a,b,c) consists of three strictly positive integers aa, bb and cc, for which a2+b2=c2a2+b2=c2. The name is derived from the Pythagorean theorem, stating that every right triangle has side lengths satisfying the formula a2+b2=c2a2+b2=c2. Thus, Pythagorean triples describe the three integer side lengths of a right triangle. However, right triangles with non-integer sid..
Five pirates are shipwrecked on a desert island. They quickly determine that the only other inhabitant of the island is a monkey and that the only food is coconuts. They set about collecting as many coconuts as they can and put them all in a pile. By nightfall they are too tired to divide the harvest, so they agree to go to sleep and divvy up the coconuts the next morning.During the night one pi..
[폰트사이즈18 고딕 진하게] workqueue 에 push 하고 pop 할때 마다 매번 다른 쓰레드로 동작 import threading import time def foo(t): i = 0 while True: print(threading.currentThread().getName(), i) i += 1 time.sleep(t) class WorkQueue: def __init__(self): self.works = list() def push(self, cb, *args, **kwargs): self.works.append((cb, args, kwargs)) def pop(self): if len(self.works): work, args, kwargs = self.works.pop(0) t = t..
[Thread] 폰트 사이즈 12 고딕 폰트 사이즈 12 고딕 폰트 사이즈 12 고딕 폰트 사이즈 12 고딕 폰트 사이즈 12 고딕 데몬쓰레드는 메인쓰레드가 종료되면 종료된다.import threading def sum(low, high): total = 0 for i in range(low, high): total += i print("sum=" + str(total)) t = threading.Thread(target=sum, args=(1, 100)) t.daemon = True t.start()
[Decorator: func] - 로그를 남길때 - 성능을 측정할 때 - 유저의 상태를 남기기 위한 redirect [performance.py] 일반 함수에 사용될 경우import time def stop_watch(func): def wrapper(*args, **kwargs): start = time.time() result = func(*args, **kwargs) print("{}: delay={}".format(func.__name__, time.time()-start)) return result return wrapper class 함수에 사용될 경우 인자 맨앞에 self 를 위치 시킨다.import time def stop_watch(func): def wrapper(self, *args..
[설치해야 할 것들] Python or Django 수업> 파이참(community 버전, os 와 32/64bit 맞게 설치)https://www.jetbrains.com/pycharm/download > 파이썬(3.x 버전중 최신 설치)https://www.python.org/downloads/ 커스텀설치 -> 설치경로 C:\Python\Python3 Unity or C# 수업> 유니티(Unity 2017.x 중 최신 버전 설치)https://unity3d.com/kr/get-unity/download/archive?_ga=2.13946039.1666190288.1536216804-955964417.1536216804 Java 수업> 이클립스(os 와 32/64bit 맞게 설치)https://www...
[프로그램의 본질은 소스코드] 우리는 굉장히 많은 컴퓨터 프로그램을 이용한다. 카카오톡 같은 메신저를 비롯해서 쇼핑, 게임, 소셜 등등 그 종류도 많고 우리 생활에 굉장히 밀접하다. 이런 프로그램들을 만들기 위해서는 프로그래밍 언어된 소스 코드를 작성해야 한다.그리고 그것을 컴퓨터가 알아 들을 수 있는 기계어로 번역해야 한다. 프로그래밍 언어로 작성된 소스 코드는 컴퓨터가 바로 알아듣고 실행할 수 없기 때문에 변환과정이 필요하다. 사람의 언어로 비유하면 영어 > 한국어 로 번역 과정이라고 할 수 있다. 번역하는 작업은 컴파일이라고 부른다. 프로그래밍 언어에는 c, c++, c#, java, python, javascript, ruby, 등등 굉장히 많은 언어들이 있다.이것들은 각각의 특징을 가지고 있고 ..
- Total
- Today
- Yesterday
- 이미지 비교
- gitlab
- 파이썬 강좌
- virtualenv
- 면접답변
- 모바일 테마 적용
- 장고 플러스친구 자동응답
- wsgi
- 문과 코딩
- GIT
- django chatbot
- 파이썬
- 엑셀 비교
- 장고 카톡 자동응답
- 문서 비교
- 모바일 스킨 적용
- 장고
- 플러스친구 자동응답
- django
- 면접정답
- 파이썬 입문
- gitignore
- Python
- 파이썬 프로그래밍
- Tistory
- 파이썬 독학
- admin.py
- PuTTYGen
- chatbot
- pycrypto
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |