• 技术文章 >Python技术 >Python基础教程

    python中Pylint的信息类型

    小妮浅浅小妮浅浅2021-08-23 09:32:00原创1956

    说明

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

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

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

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

    5、*(F)致命的。

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

    实例

    Output:
       Using the default text output, the message format is :
      MESSAGE_TYPE: LINE_NUM:[OBJECT:] MESSAGE
      There are 5 kind of message types :
      * (C) convention, for programming standard violation
      * (R) refactor, for bad code smell
      * (W) warning, for python specific problems
      * (E) error, for probable bugs in the code
      * (F) fatal, if an error occurred which prevented pylint from doing further processing.

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

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

    专题推荐:python pylint
    品易云
    上一篇:python建造者模式是什么 下一篇:python继承的特性分析

    相关文章推荐

    • python类属性的概念• python类属性的内存分析• python类方法的使用注意• python静态方法的使用注意点• python访问元组的两种方法• python多线程的执行分析• python字符串结合操作符的使用• python中mainloop()方法的使用• python设置的窗口位置• python中del在垃圾回收的使用• python线程中Condition的原理• python线程事件Event的原理• python建造者模式是什么

    全部评论我要评论

    © 2021 Python学习网 苏ICP备2021003149号-1

  • 取消发布评论
  • 

    Python学习网