您现在的位置是:课程教程文章

python中Pylint的信息类型

2023-12-14 20:28课程教程文章 人已围观

说明

1、*(C)约定,用于违反编程标准。

2、*(R)重构,针对不好的代码口味。

3、*(W)警告python的特定问题。

4、*(E)错误用于代码中可能的错误。

5、*(F)致命的。

如果发生错误,pylint将无法进一步处理。

实例

Output:
Usingthedefaulttextoutput,themessageformatis:
MESSAGE_TYPE:LINE_NUM:[OBJECT:]MESSAGE
Thereare5kindofmessagetypes:
*(C)convention,forprogrammingstandardviolation
*(R)refactor,forbadcodesmell
*(W)warning,forpythonspecificproblems
*(E)error,forprobablebugsinthecode
*(F)fatal,ifanerroroccurredwhichpreventedpylintfromdoingfurtherprocessing.

以上就是python中Pylint的信息类型,希望对大家有所帮助。更多Python学习指路:python基础教程

本文教程操作环境:windows7系统、Python 3.9.1,DELL G3电脑。

课程教程:python中Pylint的信息类型

上一篇:php中__sleep方法的使用

下一篇:没有了

站点信息

  • 文章统计篇文章