본문 바로가기
반응형
[참고자료] Python Python- python3.10.13 공식 문서: https://docs.python.org/ko/3.10/- devdocs: https://devdocs.io/python~3.10/- [교재] 코딩도장 (+온라인 무료 교재) - [교재] 점프투 파이썬(+온라인 무료 교재) 2024. 7. 13.
[로드맵] Python 로드맵 1. Python- Python3.10 → Python3.11 → Python3.121.1 Python (기본:Python3.10)- 환경설정- 소개 및 특징- 변수, 자료형 및 형변환: int/float/complex/bool/str/type- 연산자: - 산술: +(덧셈), -(뺼셈), *(곱셈), /(소수점나눗셈), //(정수나눗셈), %(나머지) - 비교: ==/!=/>/>=/1.2 Python(상세) 1.3 Python(추가: Python3.10 이후) 2. 자료구조2.1 자료구조(기본)- Array- Linked List- Stack- Queue- Deque- Hash- Tree- Heap(Priority_Queue)- Graph2.2 자료구조(심화)- AVL Tree- B Tre.. 2024. 7. 13.
[임베디드] Ch04: 주변기기 및 통신 Peripheral DevicePIO(Programmable Input/Output)I2CSerialUSB(Uinversal Serial Bus)+) RaspberryPi config+) RaspberryPi GPIO 2024. 7. 12.
[임베디드] Ch03: 데이터 프로세싱 Coding and DecodingBitwise Operatioin, Data FormatByte OrderingTiming Diagram+) Encoding/Decoging+) raspi-config+) Change CPU Clock 2024. 7. 12.
[임베디드] Ch02: 컴퓨터 시스템 Computer SystemProcessor, CPU and Computer ArchitectureIC TechnologyClock, FrequencySystem BusRaspberryPi 4 Compute Module(CM4) Processor+) Check Porcess Info+) RaspberryPi Tool and Utility 2024. 7. 12.
[임베디드] Ch01: 하드웨어 기초 Voltage, Current and RegisterPower SourceAnalog and Digital: Signal and FrequencyDigital SignalElementCircuitDatasheetRaspberry Pi 2024. 7. 12.
[코딩테스트] 요약 문제 해결 순서- 문제는 쪼개서 읽기- 제약사항 파악하기- 테스트 케이스 고려하기- 입력값 분석하기- 핵심 키워드 분석하기- 데이터 흐름 + 구성 파악하기 Pseudo-Code- 자연어로 작성- 동작 중심으로 문제 해결 순서로 작성 시간복잡도- 알고리즘이 문제를 푸는 연산횟수와 입력의 관계를 표현- Big-O Notation: 최악의 경우를 고려한 시간복잡도 표기법시간복잡도최대 연산 횟수n!102^n20n^3200n^23000n*log(n)100만n1000만log(n)10억  자료형- 부동소수점 오차주의(sys.float_info.epsilon)- 데이터 타입은 mutable(list, dict, set)과 immutable(tuple, int, float, str)로 나뉨 함수- lambda expre.. 2024. 7. 6.
[코딩테스트] 정렬 정렬 문제 추천- 문자열 내 마음대로 정렬하기(Lv1)- 정수 내림차순으로 배치하기(Lv1)- K번째 수(Lv1)- 가장 큰 수(Lv2)- 튜플(Lv2)- 지형 이동(Lv4)+)- 파일명 정렬(Lv2)- H-Index(Lv2)문자열 내 마음대로 정렬하기def solution(strings, n): answer = [] answer = sorted(strings, key=lambda x: (x[n], x)) return answer정수 내림차순으로 배치하기def solution(n): answer = 0 answer = sorted(list(str(n)), reverse=True) answer = int("".join(answer)) return answerK번쨰 수d.. 2024. 7. 6.
[DRF] 주요 기능별 클래스 및 함수 1. 시리얼라이저 (Serializers)Serializer: 기본 시리얼라이저 클래스ModelSerializer: 모델 기반 시리얼라이저HyperlinkedModelSerializer: 하이퍼링크 기반 시리얼라이저주요 메서드to_representation(): 객체를 직렬화to_internal_value(): 데이터를 역직렬화is_valid(): 데이터 유효성 검사save(): 객체 저장2. 뷰 (Views)APIView: 기본 API 뷰 클래스GenericAPIView: 일반적인 API 동작을 위한 뷰ViewSet: CRUD 작업을 위한 뷰셋ModelViewSet: 모델 기반 CRUD 작업을 위한 뷰셋주요 믹스인ListModelMixin: 목록 조회RetrieveModelMixin: 단일 객체 조회C.. 2024. 7. 5.
[DRF] 프로젝트 구조 및 코딩컨벤션 프로젝트 구조myproject/ manage.py myproject/ __init__.py settings.py urls.py wsgi.py app1/ migrations/ __init__.py __init__.py admin.py apps.py models.py serializers.py views.py urls.py tests/ __init__.py test_models.py test_views.py test_serializer.. 2024. 7. 5.
반응형