버미다

고정 헤더 영역

글 제목

메뉴 레이어

버미다

메뉴 리스트

  • 홈
  • 태그
  • 방명록
  • 분류 전체보기 (198)
    • html, css (31)
    • 서문 (3)
    • python (124)
    • c언어 (13)
    • gpt활용 (1)
    • pymysql (17)
    • SQLD (8)
    • 업무 (1)

검색 레이어

버미다

검색 영역

컨텐츠 검색

python

  • 벽돌깨기 오류 수정하

    2025.06.02 by bumychoi

  • python 텍스트 문서 음성변환

    2025.05.13 by bumychoi

  • 똥피하기 게임

    2025.04.06 by bumychoi

  • 계산기 tkinter 오류 해결

    2025.04.04 by bumychoi

  • tikiner 활용

    2025.03.27 by bumychoi

  • 파이썬 로또 번호 조회기

    2025.03.24 by bumychoi

  • 나도 코딩 보며 게임만들기

    2025.02.27 by bumychoi

  • 다시 만들기

    2025.01.06 by bumychoi

벽돌깨기 오류 수정하

import tkinter as tkfrom tkinter import Frame, Canvasclass BrickBreaker(Frame): def __init__(self,root): super().__init__(root) self.width = 640 self.height = 480 self.canvas = Canvas(self,bg="blue", width=self.width, height=self.height, ) self.canvas.pack() self..

python 2025. 6. 2. 10:12

python 텍스트 문서 음성변환

import edge_ttsimport asyncioasync def tts(): # 텍스트 파일 읽기 with open("2025_5_12.txt", "r", encoding="utf-8") as f: text = f.read() # 음성 설정: 남성 음성 (en-US-GuyNeural 등) communicate = edge_tts.Communicate( text=text, voice="ko-KR-InJoonNeural", # 한국어 남성 음성 rate="+0%" # 속도 조절: +10%, -10% 등 가능 ) await communicate.save("output_edge.wav") print("자연스러운 음성..

python 2025. 5. 13. 10:09

똥피하기 게임

import pygamefrom pygame.locals import *import randomimport sysFPS = 60MAX_WIDTH = 400MAX_HEIGHT = 600pygame.init()clock = pygame.time.Clock()screen = pygame.display.set_mode((MAX_WIDTH,MAX_HEIGHT))class Player():    def __init__(self,x,y):        self.x = x        self.y = y    def draw(self):        return pygame.draw.rect(screen,(0,0,255),(self.x,self.y,40,40))    def move(self):        if pr..

python 2025. 4. 6. 14:41

계산기 tkinter 오류 해결

수정코드 import tkinter as tkwin =  tk.Tk()win.title("계산기")# win.geometry("800x800")win.resizable(False,False)win.config(padx=10,pady=10, bg="blue")def click(digit):    if digit=="←":        input_entry.delete(len(input_entry.get())-1)    else:        input_entry.insert(tk.END,digit)def del_digit():    input_entry.delete(0,tk.END)    result_label.config(text="")def calculate():    try:        reslut..

python 2025. 4. 4. 11:04

tikiner 활용

from tkinter import *import tkinter as tkfrom tkinter import messagebox# from tkinter import Messagebox window = tk.Tk()window.title("음료수준")window.geometry("500x500")price = {'coffee':3500,"lette":4000,"smoothie":4500,"tea":300}order=[]sum = 0menu_no=0def add(item):    global sum    global menu_no    if item not in price:        print("no Drink")    this_price = price.get(item)    sum += this_pr..

python 2025. 3. 27. 11:12

파이썬 로또 번호 조회기

from tkinter import *from datetime import datetimeimport requestsfrom bs4 import BeautifulSoupwin = Tk() #창 생성def lotto_print():    n=ent.get()    url = 'https://dhlottery.co.kr/gameResult.do?method=byWin&drwNo={}'.format(n)     req=requests.get(url)    soup=BeautifulSoup(req.text,"html.parser")    txt=soup.find("div",attrs={"class","win_result"}).get_text().split("\n")    num_list = txt[7:13]  ..

python 2025. 3. 24. 20:12

나도 코딩 보며 게임만들기

https://www.youtube.com/watch?v=Dkx8Pl6QKW0import pygamepygame.init() # 초기화(반드시 필요)#화면 크기 설정screen_width  = 400 #가로크기screen_height =  640 #세로 크기screen = pygame.display.set_mode((screen_width,screen_height))#화면 타이틀 설정pygame.display.set_caption("Nado.Game") #게임 이름#FPSclock = pygame.time.Clock()#배경 이미지 불러오기backgound = pygame.image.load("C:/Users/82102/Desktop/PANGPANG/backgound.png")# 캐릭터 (스프라이트) 불..

python 2025. 2. 27. 20:30

다시 만들기

from flask import Flask,render_template,request,jsonify,redirectfrom pymongo import MongoClientclient = MongoClient("mongodb+srv://sparta:test@cluster0.wu64ps9.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0")db=client.d_barapp = Flask(__name__) @app.route("/",methods=["GET"])def index():    mv_list= list(db.mv.find({},{"_id":False}))    # print(mv_list)    return render_template(     ..

python 2025. 1. 6. 12:30

추가 정보

인기글

최신글

페이징

이전
1 2 3 4 ··· 16
다음
TISTORY
버미다 © Magazine Lab
페이스북 트위터 인스타그램 유투브 메일

티스토리툴바