Fork me on GitHub

pickle导入变量AttributeError的解决方案

问题描述:

AttributeError: 'module' object has no attribute ‘attr1’

  

解决方案:

# 找到报错的文件a.py
from a import attr1

  

posted @ 2019-09-10 11:31  stardsd  阅读(535)  评论(0编辑  收藏  举报