db=dbhelper('127,0,0.1',3306,"root","123456","test") 这个报错

来源:3-9 实战:基于xlrd模块实现考试系统题库管理

weixin_慕妹5287631

2021-08-07 22:15

老师你好,请问db=dbhelper('127,0,0.1',3306,"root","123456","test") NameError: name 'dbhelper' is not defined报错是什么原因

写回答 关注

1回答

  • 慕后端4182024
    2021-09-27 11:31:30

    dbhelper这个是老师另外自已封装的一个类,不是pymysql模块的类,没有源文件 ,直接调用肯定会报错not defined。

Python办公自动化

以实际工作场景出发,利用python高效快捷覆盖全方位办公自动化内容。

50604 学习 · 163 问题

查看课程

相似问题