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
- flutter
- swift
- port
- mssql
- 리눅스
- tensorflow
- Linux
- 다이어트
- urllib
- 유니티
- MySQL
- Excel
- node.js
- python
- pandas
- Unity
- sqlite
- PER
- PyQt
- MS-SQL
- IOS
- ASP
- PyQt5
- ubuntu
- 날짜
- GIT
- javascript
- 맛집
- 라즈베리파이
- 함수
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