用pyCharm时,常会出现警告信息:

function name should be lowercase   --函数名应该是小写  字母

argument name should be lowercase --参数名应该是小写字母

variable in function should be lowercase --变量应该是小写字母

 

解决方法:

File →Settings→Editor→Inspections→Python→PEP 8 naming convention violation

右下角有个"Ignored errors",增加:

N802

N803

N806

分别对应上面的三种提示。

Python : argument name should be lowercase 警告处理解决方法

 

相关文章:

  • 2021-06-02
  • 2021-10-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2023-03-24
  • 2021-11-16
猜你喜欢
  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
  • 2021-10-05
  • 2022-12-23
  • 2021-05-01
相关资源
相似解决方案