# 獲取數(shù)據(jù)庫連接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'
2022-04-22
不要放在E盤吧,可能有權(quán)限的問題,用C盤的管理賬號去連接