블로그
-
[Python FastAPI] Celery와 Redis를 이용한 백그라운드 작업 큐 구현
FastAPI는 자체적으로 async def 기반의 비동기 I/O를 지원하고, 경량 백그라운드 처리를 위해 Background를 사용한 백그라운 작업을 지원한다.
blog.naver.com · 2025.10.26
-
ㅘㅣㅗㅓㅣㅓㅣ
. # 간단한 합계 함수 def total(nums): s = 0 for n in nums: s += n return s print(total([1, 2, 3, 4])) # 10 ③
blog.naver.com · 2025.10.22
-
정보처리기사 실기 : 파이썬
파이썬 기본 구조 : 사용자 정의 함수, 클래스 정의 후 실행 코드 들여쓰기 함 def fn() 2.
blog.naver.com · 2025.10.19
-
프로그래머스 개인정보 수집 유효기간 파이썬
def solution(today, terms, privacies): def to_date(date_str): year, month, day = map(int, date_str.split ('.')) return [year, month, day] def add_months(date, months_to_add): year, month, day = date month +
blog.naver.com · 2025.04.17
-
[PCCP 기출문제] 2번 / 퍼즐 게임 챌린지
def solution(diffs, times, limit): minValue = diffs[0] maxValue = max(diffs) return getSolution(diffs , times, limit, minValue, maxValue) def getSolution(diffs, times, limit, minValue, maxValue): level =
blog.naver.com · 2025.04.23
-
pyqt5 drawing graph bug 2
def keyPressEvent(self, event): global coord if event.key() == Qt.Key_S: nCurTime = time.time() print
blog.naver.com · 2025.06.03
-
완전범죄
def solution(info, n, m): answer = float('inf') stack = [(0, 0, 0)] # (idx, sum0, sum1) visited = set
blog.naver.com · 2025.06.10
-
pyqt5 dialog
from Set_Dial import * main form UI에 다이얼로그를 호출한다. self.pushButton.clicked.connect(self.setting_Dialog) def
blog.naver.com · 2025.05.16
-
pyqt5 Dialog handling
\g_test.ui")[0] class MyWindow(QWidget,form_class): def setting_Dialog(self): print('setting dialog open
blog.naver.com · 2025.05.21
-
충돌위험찾기
from collections import Counter def solution(points, routes): # 이동 초 별 이동좌표 리스트에 insert node = {} for
blog.naver.com · 2025.05.22