Python脚本报错AttributeError: 'module' object has no attribute 'maketrans'

出现此错误的原因:是此文件smtp02.py 所在的目录下有string.pyc 的文件存在,与python库里的string.pyc冲突造成无法确认编译所取的类库。

相关文章: