Python error: Traceback (): File path, line 12, in <module>, causes and solutions of AttributeError and NameError

This article mainly explains the reasons and solutions of Python importing packages and reporting errors: AttributeError.
Date: May 10, 2023
Author: Ren Congcong
python3.9.6

Error reporting

insert image description here
The general text error is:

Traceback (most recent call last):
  File "E:\路径\文件.py", line 12, in <module>
    返回值= 函数(输入值)
AttributeError: module '模块名称' has no attribute '函数名'

Guess you like

Origin blog.csdn.net/hj960511/article/details/130604321