python 报错"ValueError: dictionary update sequence element #0 has length 6; 2 is r

49 阅读1分钟

python 报错"ValueError: dictionary update sequence element #0 has length 6; 2 is required"

现象

python 启动报错"ValueError: dictionary update sequence element #0 has length 6; 2 is required"

 分析

根据报错分析,应该是字典或格式有问题,检查发现LOGGING_DIC格式有误

 解决方法

去掉多余字符即可,同时也警醒我们要细心谨慎操作编写,养成良好的操作习惯