Notice
Recent Posts
Recent Comments
Link
아미(아름다운미소)
[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 |
0 Comments