Python中报错__init__() got an unexpected keyword argument 'encoding'

Python中报错__init__() got an unexpected keyword argument 'encoding'

问题描述:

今天写Python的Django的项目,运行后就报错这个·

img

img


打开后也没看出来哪儿要改

这个是初始化函数的参数设置问题,你看初始化函数定义了几个参数,然后看看实例化设置了几个参数