일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- evaluation
- pandas
- enV
- Paper
- Package
- LLM
- docker
- Laravel
- format
- file
- GitLab
- KAKAO
- judge
- numpy
- Container
- pytorch
- Converting
- Flask
- list
- PostgreSQL
- Mac
- TORCH
- git
- Windows
- Database
- Python
- Linux
- AI
- DB
- 책갈피
- Today
- Total
목록분류 전체보기 (112)
Daily Develope
PCM 파일 통합(합치기) : PCM은 파일의 시작에 소리 정보를 담고있는 header가 존재하지 않기 때문에, raw 데이터(Byte Code)를 그대로 읽어서 합치면된다. targetList = ["{대상파일1_경로}", "{대상파일2_경로}"] destinationPath = "{생성파일경로}" buf = bytearray() for file in targetList: f = open(file, 'rb') buf += f.read() f.close() wf = open(destinationPath, 'wb') wf.write(buf) wf.close() PCM 에서 WAV 로의 변환 : PCM 데이터를 WAV로 변환하려는 경우 WAV 파일이 어떻게 쓰였는지 나타내는 He..
명령 포맷 kubectl {command} {type} {name} {flag} # command = 실행 동작 (create, get, delete) # type = 자원 유형 (pod, service, ingress) # name = 자원 이름 # flag = 옵션 조회 kubectl get all -A# 모든 개체정보 출력 (namespace 무시) kubectl get {type} -o wide# 간략정보 추가 확인 kubectl describe {type} {name}# 세부정보 추가 확인 kubectl top {type}# 현재 자원 사용량 확인 kubectl api-resources# api 확인 (기본경로 = $HOME/.kube/config) kubectl logs -f {pod}# 로그..
문자열 매칭 s = "오늘은 기분이 '매우' 좋습니다." # 단순 문자열 확인 print("기분이" in s)# True print("나쁩니다" in s)# False # 정의된 문자열 리스트 중 일치하는 단어가 있는지 확인 print(any(x in s for x in ["좋습니다", "나쁩니다"])) # True print(any(x in s for x in ["그저그래요", "나쁩니다"])) # False # 정의된 문자열 리스트 모두가 일치하는지 확인 print(all(x in s for x in ["오늘은", "좋습니다"]))# True print(all(x in s for x in ["오늘은", "나쁩니다"]))# False 리스트 매칭 a=["hello", "world", "python"] ..

기본 선언 및 환경설정 ㅇ 선언 import logging logging.basicConfig(filename=f'{os.getcwd()}/result_test.log', level=logging.INFO, format='%(asctime)s %(message)s') # 사용 예) import os import logging from datetime import datetime logging.basicConfig(filename=f'{os.getcwd()}/logs/my_log_{datetime.now().strftime("%Y%m%d_%H%M%S")}.log', level=logging.INFO, format='%(asctime)s %(message)s') ㅇ 환경설정 상세 설명 # Fromat : 로..