
pip install pygameimport pygameimport sys# 초기화pygame.init()# 화면 설정screen = pygame.display.set_mode((640, 480))pygame.display.set_caption('키보드 입력 예제')# 색상 설정WHITE = (255, 255, 255)BLACK = (0, 0, 0)# 폰트 설정font = pygame.font.Font(None, 74)# 텍스트 초기화text = ""text_surface = font.render(text, True, BLACK)# 메인 루프running = Truewhile running: for event in pygame.event.get(): if event.type == pyg..
from flask import Flask, request, render_template, redirect, url_for, sessionimport randomimport sqlite3import osimport webbrowserapp = Flask(__name__)app.secret_key = os.urandom(32)DATABASE = "scores.db"PROVERBS_FILE = 'static/사자성어.txt'# 파일 읽기with open(PROVERBS_FILE, 'r', encoding='utf-8') as file: lines = file.readlines()# 사자성어와 설명을 분리하여 저장proverbs = {}for line in lines: parts = line.str..
import randomfrom colorama import init, Fore, Styleimport webbrowserimport sqlite3init()# 파일 읽기file_path = 'D:\\최정훈\\python sia quiz\\사자성어 퀴즈\\사자성어.txt' with open(file_path, 'r', encoding='utf-8') as file: lines = file.readlines() # 사자성어와 설명을 분리하여 저장proverbs = {}for line in lines: parts = line.strip().split(':') if len(parts) == 2: proverbs[parts[0].strip()] = parts[1].strip()# 데..
- Total
- Today
- Yesterday
- 풀이
- 리눅스
- 32bit
- find
- Linux
- Natas
- OpenSSL
- natas7
- bz2
- over the wire
- OverTheWire
- tar
- Strings
- 웹보안공부
- Bandit
- grep
- SSL
- tr
- 리터럴
- X32
- java
- Encode
- 웹보안
- gz
- ssh
- 압축파일
- BASE64
- solution
- nc
- HTTPS
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |