我编写了一个try_pylint.py文件,以尝试pylint是否可以用Python3.10检测到某些不正确的样式。code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)try_pylint.py:4:1: E265 block comment should start with '# '
t
Pylint将分析以下Python片段代码 read = result.tobytes()E:401,22: Instance of 'int' has no 'tobytes' member\
(but some types could not be inferred如何更改(更正)代码以使Pylint能够理解?或者我如何告诉它函数的结果可以是int以外的其他类型?或者,我如