분류 전체보기

    Python | weapon_game.py

    [weapon_game.py] from math import gamma from multiprocessing import current_process from selectors import EVENT_WRITE from signal import pthread_sigmask from tracemalloc import start from unittest import runner import pygame ################################################################################################################################# # 0.기본 화면 초기화 부분 pygame.init() #초기화 #화면 크기 ..

    Python | calculator.py

    [calculator.py] import tkinter as tk from turtle import st # GUI 설계 후 # 내부 logic 설계 disvalue = 0 operator = {'+':1, '-':2, '/':3, '*':4, 'C':5, '=':6} stovalue = 0 opPre = 0 def number_click(value) : # print('숫자 ', value) global disvalue disvalue = (disvalue * 10) + value str_value.set(disvalue) def operator_click(value) : # print('명령 ', value) global disvalue,operator, stovalue, opPre op = oper..