python调用对象属性出错:AttributeError: 'function' object has no attribute '_name_'

出错如下图所示:

原来是因为把__name__写成_name_, 下图为正确结果:

原文地址:https://www.cnblogs.com/sunshine2016/p/5737073.html