问题 Right now, I have the following code: pilimg = PILImage.open(img_file_tmp) # img_file_tmp just contains the image to read pilimg.thumbnail((200,200), PILImage.ANTIALIAS) pilimg.save(fn, 'PNG') # fn is a filename This works just fine for saving to a local file pointed to by fn . However, what I would want this to do instead is to save the file on a remote FTP server. What is the easiest way to achieve this? 回答1: Python's ftplib library can initiate an FTP transfer, but PIL cannot write