问题一:AttributeError:'module' has no attribute 'xxx'的解决方法
搜索对应的文件下的缓存文件 __pycache__
删除即可。
场景一:NameError: name 'requests' is not defined
解决方案:没有import或者没有 install
import requests
场景二:ModuleNotFoundError: No module named 'duanxin'
linux下面添加下面前面两行就可以导入了
import sys
sys.path.append('/opt/data/pythonshsz')
from duanxin.duanxinapi import send_sms



