말하는감자

  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록

Python/Python__DesignPattern 3

adapter pattern

class class Chiwawa: def __init__(self): self.__dog_name = "wawa" @property def dog_name(self): return self.__dog_name @dog_name.setter def dog_name(self, value): self.__dog_name = value def print_name(self): print(self.__dog_name) class Poodle: def __init__(self): self.__dog_name = "zzong" @property def dog_name(self): return self.__dog_name @dog_name.setter def dog_name(self, value): self.__do..

Python/Python__DesignPattern 2020.12.01

facade pattern

class Me(object): def 청소(self): print("사무실을 청소하고 있어요") class Friend(object): def 랜선정리(self): print("랜선을 정리하고 있어요") class Run: def __init__(self): self.friend = Friend() self.me = Me() def 이사(self): print("이사를 시작합니다") self.friend.랜선정리() self.me.청소() if __name__ == '__main__': run = Run() run.이사()

Python/Python__DesignPattern 2020.12.01

singleton pattern

import pymysql class MetaSingleton(type): _instances = {} def __call__(cls, *args, **kwargs): if cls not in cls._instances: cls._instances[cls] = super(MetaSingleton, cls).__call__(*args, **kwargs) return cls._instances[cls] class DataBase(metaclass=MetaSingleton): def __init__(self): self.__host = '127.0.0.1' self.__port = 3306 self.__user = 'root' self.__password = '123456' self.__db_name = 'c..

Python/Python__DesignPattern 2020.12.01
1
더보기
프로필사진

  • 분류 전체보기 (253)
    • never mind (14)
      • yumyum (3)
      • anything (8)
    • JAVA (30)
      • JAVA__Framework-Springboot (19)
      • JAVA__Interface-JPA (3)
      • JAVA__IDE (2)
      • JAVA__Error (1)
      • JAVA__Works (4)
    • Linux-공통 (12)
      • Linux-공통__vim (2)
      • Linux-공통__shell-script (8)
      • Linux-공통__git (1)
      • Linux-공통__error (0)
    • Linux-WSL (1)
      • Linux-WSL__settings (1)
    • Linux-OracleCentos (3)
      • Linux-OracleCentos__settings (1)
      • Linux-OracleCentos__github (2)
    • Linux-centos (59)
      • Linux-centos__java (3)
      • Linux-centos__폐쇄망 (4)
      • Linux-centos__works (34)
      • Linux-centos__python (7)
      • -Linux-centos__nginx-uwsgi (4)
      • Linux-centos__vue (1)
    • Linux-ubuntu (1)
      • Linux-ubuntu__java (0)
      • Linux-ubuntu__python (1)
    • Python (66)
      • Python__works (55)
      • Python__IDE (3)
      • Python__DesignPattern (3)
      • Python__Error (2)
    • Python-Library (4)
      • Python-Library__BeautifulSoup (3)
      • Python-Library__Selenium (1)
    • Python-Framework (19)
      • Python-Framework (0)
      • Python-Framework__Sanic (5)
      • Python-Framework__Django (6)
      • Python-Framework__Flask (8)
    • Database (8)
      • Database__Mysql (6)
      • Database__Mariadb (0)
      • Database__Oracle (0)
      • Database__Tools (1)
    • API (3)
      • API__google (3)
    • JS (8)
      • JS__node-express게시판만들기 (1)
      • JS__node-works (7)
    • CI (16)
      • CI__Jenkins (15)
      • CI__Docker (1)
    • CloudServer (5)
      • CloudServer__GoogleCloudPla.. (1)
      • CloudServer__NaverCloudPlat.. (0)
      • CloudServer__OracleCloud (2)
      • CloudServer__AmazonWebServi.. (1)
    • Windows (1)
      • Windows-폐쇄망 (1)

Tag

Slack, flask, filebeat, sanic, ElasticSearch, Jenkins, 파이썬, java, pymysql, centos7, kibana, python, linux, springboot, git, shell, Lombok, CentOS, MYSQL, SSH,

최근글과 인기글

  • 최근글
  • 인기글
  • hhkb 키맵 변경하기 - PowerToys 2022.05.12 13:19
  • WSL에 node 설치하기 2022.04.15 11:16
  • Github - 2. 연동 2022.03.01 15:31
  • 리눅스 (centos) 취약점 점검 2021.02.26 12:13
  • SQL Error: 1064, SQLState: 42000 2021.04.02 11:46
  • springboot centos7 에 배포하기 2021.03.24 15:07

최근댓글

  • 덕분에 해결하고 갑니다. 어떻게 저랑 똑같은 실수⋯

    인파

  • 집에서 카페급으로 마실수있으면 하는데.. 딱이네⋯

    그룩

  • 디자인도 네땡프레소랑 비슷하네욤- 지금 돌체구스⋯

    해피빈

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

  • 2022/05
  • 2022/04
  • 2022/03
  • 2022/02

Calendar

«   2022/05   »
일 월 화 수 목 금 토
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        

방문자수Total

101,705

  • Today : 9
  • Yesterday : 54

Copyright © Kakao Corp. All rights reserved.