python 实现FTP上传指定文件,该如何解决

python 实现FTP上传指定文件
Windows 平台    如何用PYTHON中的FTPLIB模块 实现对指定文件的上传?求精通python的大神给写出一段详细的代码与注释。最后40分全部奉上。
------解决方案--------------------
完整点的例子:
import ftplib
session = ftplib.FTP('server.address.com','USERNAME','PASSWORD')
file = open('kitten.jpg','rb')                  # file to send
session.storbinary('STOR kitten.jpg', file)     # send the file
file.close()                                    # close file and FTP
session.quit()

------解决方案--------------------
看看文档,先熟悉一下相关api,比如说怎样切换个目录
------解决方案--------------------
都是由简单开始的,python自带的文档还是很全的,熟悉的模块多了就会好点。