# 获取数据库连接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'