PyCharm shows "Function name should be lowercase" even though function name is already lowercase!

已回答

???

 

0

is not in lowercase. What you have is called mixedCase. It's PEP 8 violation. See https://www.python.org/dev/peps/pep-0008/#descriptive-naming-styles and https://www.python.org/dev/peps/pep-0008/#function-and-variable-names

You can disable this inspection in Settings/Preferences | Editor | Inspections if you don't need it.

1
Avatar
Permanently deleted user

OK, thanks!

0

请先登录再写评论。