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 | 31 | 
													Tags
													
											
												
												- urllib
- port
- python
- 다이어트
- 유니티
- Excel
- tensorflow
- MySQL
- GIT
- swift
- PyQt5
- javascript
- ubuntu
- sqlite
- Linux
- pandas
- 라즈베리파이
- ASP
- flutter
- PyQt
- IOS
- Unity
- 날짜
- 맛집
- mssql
- PER
- MS-SQL
- node.js
- 리눅스
- 함수
													Archives
													
											
											
											
											목록파일 (1)
아미(아름다운미소)
			
			
				[python] 파일, 디렉터리 조작
				
	
	
               
           
					
					
					
					
					
					
						
					
				[python] 파일, 디렉터리 조작 디렉터리, 파일, 확장자 분리 (get directory and file, extension) import os fullpath = '/home/aaa/bbb/ccc.txt' print(os.path.dirname(fullpath)) # '/home/aaa/bbb' print(os.path.basename(fullpath)) # 'ccc.txt' print(os.path.split(fullpath)) # ('/home/aaa/bbb', 'ccc.txt') print(os.path.splitext(fullpath)) # ('/home/aaa/bbb/ccc', '.txt') 파일 확인 (check file exists) print(os.path.exists('/home/..
				랭귀지/python
				
				2018. 1. 11. 13:00