Traceback (most recent call last):
File "C:/Users/XXX/PycharmProjects/pythonProject2/tools/email.py", line 1, in <module>
from smtplib import SMTP_SSL
File "E:\Program Files\ProgramData\Python389\lib\smtplib.py", line 47, in <module>
import email.utils
File "C:\Users\XXX\PycharmProjects\pythonProject2\tools\email.py", line 1, in <module>
from smtplib import SMTP_SSL
ImportError: cannot import name 'SMTP_SSL' from partially initialized module 'smtplib' (most likely due to a circular import) (E:\Program Files\ProgramData\Python389\lib\smtplib.py)
Process finished with exit code 1
当前文件名与包文件名重名,修改文件名即可