Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 모델서빙
- celery
- HeidiSQL
- aiflow
- JavaScripts
- 빗썸api
- 원하는 태그 찾기
- text.children
- ssh operator
- Docker
- requesthead
- 정규표현식
- mariadb설치 #mysql설치
- enumerate #함수 # def
- airflow
- beautifulsoup
- etl
- Google Cloud Storage
- FastAPI
- cron
- K-ICT
- requests
- with open
- 파일저장
- 가상환경 초기세팅
- 자연어처리 환경 컨테이너
- pickle #datetime
- 자동화
- 리눅스 # 기초
- datetime #zip
Archives
- Today
- Total
목록OS (1)
오음
python) os 모듈 활용
import os os.getcwd() # 경로확인 'c:\\workspace' os.mkdir("test") # 파일생성 # 절대 경로 -> c:\\workspace\\test # 상대 경로 -> ./test os.listdir("./") # 모든 파일 리스트 검색 os.walk("c:/") # 하위 디렉토리 검색 # 모든 파일에서 .py 파일만 뽑기 path = "./" file_list = os.listdir(path) file_list_py = [file for file in file_list if file.endswith(".py")] print (file_list_py) # 현재 경로에 test폴더 있는지 확인 os.path.isdir("./test") True # 경로 바꾸기 os.chdir..
데이터 엔지니어링/파이썬
2023. 3. 6. 22:53