我在运行前一段时间有效的代码时得到了这个。我试图更改导入选项akafrom ftplib import *
等,但没有运气。任何帮助表示赞赏...
C:\blahblahblah>python ftp_client.py
Traceback (most recent call last):
File "ftp_client.py", line 8, in <module>
from ftplib import FTP
File "C:\blahblahblah\ftplib.py", line 1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtm
l11/DTD/xhtml11.dtd">
^
SyntaxError: invalid syntax