< id="tt-body-category">
본문 바로가기 메뉴 바로가기

burningrizen

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

burningrizen

검색하기 폼
  • 분류 전체보기 (254)
    • development (14)
      • python (5)
      • django (4)
      • git (3)
      • ubuntu (1)
      • aws (1)
    • common (3)
      • tistory (2)
      • document (0)
    • python lecture (233)
      • basic (96)
      • concurrency (11)
      • functional programming (1)
      • cleancode (1)
      • common (6)
      • algorism (31)
      • programmers (65)
      • project (22)
  • 방명록

분류 전체보기 (254)
[gui] tkinter 로 다중 option menu 구현

import tkinter as tk class OptionMenu: width = 90 font = ("Ubuntu", 12) side = "top" label = None menus = list() @classmethod def create_menus(cls, win, menus): cls.menus = [{"menu": OptionMenu(option_list=menu, win=win, index=i), "text": menu[0]} for i, menu in enumerate(menus)] OptionMenu.add_label() def __init__(self, option_list=None, win=None, index=None): self.option_list = option_list sel..

카테고리 없음 2020. 11. 29. 19:48
구글크롬원격

remotedesktop.google.com/support/

common 2020. 11. 25. 20:05
[python] 호텔 평점 프로젝트

python lecture/project 2020. 11. 8. 21:40
[Python] Pillow 영상처리 이미지 회전

import math from PIL import Image def rotate(x, y, theta, pi=3.14): radian = theta * pi / 180 sin = math.sin(radian) cos = math.cos(radian) new_x = cos*x - sin*y new_y = sin*x + cos*y return new_x, new_y def rotate_img(ori, theta): dst = Image.new("RGB", ori.size, (0, 0, 0)) width, height = ori.size pixels_dst = dst.load() pixels_ori = ori.load() for y in range(height): for x in range(width): ro..

python lecture/project 2020. 10. 14. 23:09
[python] 은행프로그램

1. 계좌생성 > 예금주 계좌번호 입금액 2. 입금 > 계좌번호 입금액 3. 출금 > 계좌번호 출금액 4. 이체 > 출금계좌번호 입금계좌번호 액수 5. 조회 > 계좌번호 6. 저장 > 파일로 일괄저장 > 계좌번호.txt > 계좌번호 파일에 통장이력은 아래와 같음 (기록시간, 입금 혹은 출금, 액수, 잔액) import datetime class Log: def __init__(self, add=0, sub=0, balance=0): self.now = datetime.datetime.now() if add: self.add = add if sub: self.sub = sub self.balance = balance def __str__(self): return f"{','.join(map(str, sel..

python lecture/project 2020. 7. 2. 22:13
[python] inner 함수, 이너 함수

1. inner 를 리턴해서 메모리에서 inner 가 해제되지 않는다. 2. 변수 a 가 해제되지 않는다. 3. 함수형 프로그래밍에서 상태값을 유지할 수 있다. def wrapper(): a = 0 def inner(): nonlocal a a += 1 return a return inner f = wrapper() for _ in range(10): print(f())

development/python 2020. 6. 30. 00:10
[python] 지하철 승하차 기록 조회

승하차기록파일 1. 년월, 역이름 으로 필터 2. 필터된 승하차 총합을 구함 3. plotly 설치후 그래프로 표시 def read_file(path): with open(path, "r") as f: return f.readlines() class Log: def __init__(self, date=None, line=None, station=None, in_outs=None): self.date = date self.line = line self.station = station self.in_outs = in_outs def __str__(self): return f"{self.__dict__}" @classmethod def line_to_list(cls, line): line = line.repl..

python lecture/project 2020. 6. 7. 15:08
[python] n 진수 바꾸기

십진수 를 n 진수로 변경하기 def foo(r, base): tokens = "0123456789ABCDEF" result = "" q = r while q: q, r = divmod(q, base) n = tokens[r] result = n + result return result print(foo(23, 5))

python lecture/project 2020. 6. 3. 22:51
[python] 시간변환

시간 데이타 파일 더보기 22 25 0 5 30 195 17 40 200 17 15 210 0 40 -50 8 40 -200 22 10 -50 2 15 910 23 20 100 10 50 -20 8 40 200 결과 더보기 22:25 8:45 21:0 20:45 23:50 5:20 21:20 17:25 1:0 10:30 12:0 def read_file(path): with open(path, "r") as f: return f.readlines() def write_file(path, lines): with open(path, "w") as f: f.writelines(lines) def lines_to_rows(lines): rows = list(map(lambda x: x.replace("\n", ..

python lecture/project 2020. 5. 27. 12:38
[python] 스테가노그래피

원본, 히든 이미지 스테가노그래피 설명 Pillow 라이브러리 설치 from PIL import Image as image def encoding(dec, data): val = bin(dec)[:-1] + ("1" if data else "0") return int(val, 2) def decoding(dec): return 255 if int(bin(dec)[-1]) else 0 def encoding_pixel(color_ori, color_data): r = encoding(color_ori[0], color_data[0] if isinstance(color_data, tuple) else color_data) g = encoding(color_ori[1], color_data[1] if isin..

python lecture/project 2020. 5. 25. 23:33
이전 1 2 3 4 ··· 26 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • 문서 비교
  • 파이썬 프로그래밍
  • django chatbot
  • chatbot
  • Tistory
  • wsgi
  • 이미지 비교
  • 파이썬
  • GIT
  • 모바일 테마 적용
  • PuTTYGen
  • gitignore
  • pycrypto
  • 장고
  • 플러스친구 자동응답
  • 파이썬 독학
  • 엑셀 비교
  • 모바일 스킨 적용
  • virtualenv
  • 문과 코딩
  • 면접답변
  • admin.py
  • Python
  • 면접정답
  • 장고 플러스친구 자동응답
  • gitlab
  • 장고 카톡 자동응답
  • 파이썬 강좌
  • django
  • 파이썬 입문
more
«   2025/07   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바