调试时提示登录不成功
需要设置一下 https://www.runoob.com/python/python-email.html
完整代码链接:https://blog.csdn.net/thingjustthing/article/details/118342794?spm=1001.2014.3001.5501
获取当前文件所在项目的绝对路径
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
获取当前文件的绝对路径
os.path.split(os.path.realpath(__file__))[0]