name = raw_input()
ftp = FTP("")
ftp.login('','') #These work fine
ftp.storbinary("STOR", "%s.txt" % (name)) # I think the issue is here
ftp.quit()
該程序總是崩潰,因爲它到達這個部分,我GOOGLE了,無法找到答案,我甚至嘗試只輸入文件的名稱,但具有相同的結果。ftplib.error_pern 501沒有文件名?
我在做什麼錯?
謝謝! 一些python文檔讓新手感到困惑:) – AB49K 2013-02-14 15:22:48
@AndrewBerry完全沒問題,也不用擔心 - 隨着時間的推移,它們會變得更有意義:)祝你好運。 – RocketDonkey 2013-02-14 15:24:04