Pylint消息:日志-格式-错误尝试了很多

问题描述

我想在以下github存储库中指定app.py >

https://github.com/rajas2716/Udacity_MachineLearning_Project.git

但是它给出了以下消息

app.py:16:4: W1202: Use % formatting in logging functions and pass the % parameters as arguments (logging-format-interpolation)
app.py:58:4: W1202: Use % formatting in logging functions and pass the % parameters as arguments (logging-format-interpolation)
app.py:60:4: W1202: Use % formatting in logging functions and pass the % parameters as arguments (logging-format-interpolation)

我在网上搜索并找到了

https://stackoverflow.com/questions/34619790/pylint-message-logging-format-interpolation#:~:text=Use%20%25%20formatting%20in%20logging%20functions,passing%20the%20parameters%20as%20arguments

所以,我更改了

LOG.info(f"Scaling Payload: \n{payload}")

对此

LOG.info(f"Scaling Payload: \n %s",payload)

但是pylint仍然显示与上面相同的消息

我很天真。 请告诉我该怎么办

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)