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
当前文件名与包文件名重名,修改文件名即可文章来源地址https://www.toymoban.com/news/detail-513939.html
文章来源:https://www.toymoban.com/news/detail-513939.html
到了这里,关于Traceback (most recent call last): File “C:/Users/user/PycharmProjects/pythonProject2/tools/email.p的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!