当我运行脚本时,它会关闭终端。我想打印并显示一条消息,并看到它已经完成。也许是一个状态栏?
import ftplib
from ftplib import FTP
ftp_add = input('ftp address:')
username = input('username:')
password = input('password:')
ftp = FTP(ftp_add)
ftp.login(username, password)
ftp.retrlines('LIST')
ftp.cwd("/public_html")
file_list = []
filenames = ftp.nlst()
ftp.close()