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
													
											
												
												- 다이어트
- PyQt
- Linux
- ubuntu
- port
- Unity
- swift
- javascript
- mssql
- urllib
- 맛집
- GIT
- 유니티
- flutter
- 리눅스
- pandas
- MS-SQL
- python
- tensorflow
- MySQL
- 라즈베리파이
- Excel
- 함수
- PER
- sqlite
- IOS
- node.js
- PyQt5
- 날짜
- ASP
													Archives
													
											
											
											
											아미(아름다운미소)
[python]FTP를 사용하여 파일 전송하는 법 본문
FTP를 사용하여 파일 전송하는 법
            
                    
                            
        
from win32com.client import gencache
import ftplib                                          # FTP 모듈 반입
session = ftplib.FTP('mysite.com','login','passord')   # FTP 서버에 접속
uploadfile = open('upload.txt','rb')                   # 전송할 파일 열기
session.storbinary('STOR upload.txt', uploadfile)      # 파일 전송
uploadfile.close()                                     # 파일 닫기
session.quit()                                         # FTP 세션
'랭귀지 > python' 카테고리의 다른 글
| ODBC로 데이터베이스 접근하기 (0) | 2017.12.17 | 
|---|---|
| 파이썬으로 Microsoft SQL 서버 스크립트하기 (0) | 2017.12.17 | 
| [python]디렉토리의 내용을 나열하기 (0) | 2017.12.16 | 
| [python]3 줄 웹서버 (0) | 2017.12.16 | 
| [python]웹 페이지에서 모든 링크 얻는 법 (0) | 2017.12.15 | 
			  Comments