问答详情
源自:4-1 存储数据到MySQL

# 获取数据库连接connection报错

redefinition of unused 'connection' from line 1


Traceback (most recent call last):

  File "e:\project\python\python\ifeng.py", line 21, in <module>

    connection = pymysql.connect(host='localhost',

TypeError: Connection.__init__() got an unexpected keyword argument 'dp'


提问者:慕盖茨7343568 2022-04-21 17:23

个回答

  • 慕梦前来
    2022-04-22 20:16:55

    不要放在E盘吧,可能有权限的问题,用C盘的管理账号去连接