728x90 반응형 PYTHON48 [vscode] Debug 사용법 요약: Python + launch.json 0. Debug 수행 중인 VSCode 화면 (Debug view)VS code 에서 debug를 시작 하려면activity bar에서 “벌레와 플레이 모양의 icon” 를 클릭하고나오는 패널의 상단에 위치한 Run and Debug 버튼을 누르면,Debug Sidebar (= Debug view)가 열림.또는 top bar에서 Run > Start Debugging 을 선택.또는 hot key인 f5 를 누르면, Debug sidebar 가 열림. 위 화면에서 사용된 Debug mode (or configuration)은 Current File 임.참고로, configuration 파일을 생성(작성법은 이 문서 아래에서 다룸)하지 않은 경우,Debug sidebar 상단에 재생버튼 모양의 아이콘 옆에 .. 2024. 10. 9. [matplotlib] Canvas, Render, and Event : Backend 구성 Layers Canvas, Render, and Event : Backend 구성 Layers Matplotlib의 backend는 크게FigureCanvas, Renderer, Event layer로 구성되어 있음.2023.07.20 - [Python/matplotlib] - [matplotlib] : backend 란 [matplotlib] : backend 란matplotlib: backend란 matplotlib의 backend 관련자료를 정리한 문서임.Matplotlib ArchitectureMatplotlib 아키텍트는 다음과 같이 크게 3가지 레이어로 구성된다.Backend Layer :상위 layer에서 graph를 생성하는데 초점ds31x.tistory.com 각 layer는 Artist 및 Scri.. 2024. 6. 11. [matplotlib] Summary : 작성중 Introduction2024.03.04 - [Python/matplotlib] - [matplotlib] matplotlib란 [matplotlib] matplotlib란Matplotlib은 Python에서 가장 널리 사용되는 Data Visualization Library임. matplotlib를 통해 chart(차트), image(이미지) 및, 다양한 visual representation of data이 가능함. pyplot 모듈을 통해 공학 계산 및 visualization으ds31x.tistory.comvisualization2024.01.22 - [Python/matplotlib] - [matplotlib] Visualization: Graph, Chart, Diagram, Figure [m.. 2024. 6. 3. [Python] collections.abc 2023.10.06 - [Pages] - [Python] Collections1. collections.abc 와 Python의 DataStructure.Python의 Data structure는 실제적으로 collections.abc 라는 abstract base class (abc) mechanism를 통한 hierarchy로 구성된다: type은 module임.일반적으로 list, tuple, set, dict 를 각각 익히는 경우가 입문용 Python책에서 일반적이지만,OOP의 관점에서 살펴보기 위해서는 collections.abc module에서 정의된 다양한 abstract classes의 hierarcy를 이해해야 한다.Python's built-in collection types (or c.. 2024. 4. 15. [Python] class 만들기. 일반적인 class 만드는 법일반적으로 class 만드는 법은 다음 코드를 참고할 것.class CustomClass (SuperClass0, SuperClass1) : # class 정의 헤더. 클래스의 이름과 부모를 지정. # class attributes class_variable0 = None # class가 가지는 attribute를 assignment로 생성. @classmethod # @classmethod 데코레이터를 통해 class method를 정의 def class_method(cls, *args): # class method 정의 (필요하지 않은 경우가 많음) # 첫번째 파라메터 cls에 class method를 호출하는 class객체가 할당됨. .. 2024. 4. 14. [Python] pathlib.Path 사용하기. Path 모듈은 file 및 directory의 path 를 객체지향적으로 취급하기 쉬운 인터페이스를 제공하는 Python 표준 라이브러리임. Python 3.4 이상에서 사용가능함. Path 인스턴스 생성. from pathlib import Path # current working directory에 대한 Path인스턴스 생성. cwd = Path() # Path('.') or Path.cwd() # 문자열로 path를 지정하여 Path 인스턴스 생성. path = Path('/home/dsaint31/test.txt') # 홈디렉토리에 대한 Path 인스턴스 생성. home_path = Path.home() 다음과 같이 상대경로 와 절대경로 를 생성할 수 있음. from pathlib import .. 2024. 3. 31. 이전 1 2 3 4 5 ··· 8 다음 728x90 반응형