当我有一个简单的python代码时:
import smtplib
我收到错误消息:
Traceback (most recent call last):
File "C:\Users\David\Desktop\email.py", line 25, in <module>
from smtplib import SMTP_SSL as SMTP # this invokes the secure SMTP pr
otocol (port 465, uses SSL)
File "C:\Python27\lib\smtplib.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
我不确定我做错了什么。