【发布时间】:2023-01-03 11:27:35
【问题描述】:
我在 jupyter 中运行在两个数字的加法下面
'''
This program `summationoftwonumbers` and displays their results
'''
A = 1
B = 5
print('Sum of Numbers:',A+B)
它运行良好,输出为"Sum of Numbers: 6"
但是当使用 PyLint 运行文件时,summationoftwonumber.ipynb 会出现以下错误。
summationoftwonumbers.ipynb:1:0: C0114: Missing module docstring (missing-module-docstring)
summationoftwonumbers.ipynb:1:0: W0104: Statement seems to have no effect (pointless-statement)
我不明白为什么会这样。
【问题讨论】:
-
如果您提供代码栅栏,那就太好了。
标签: python-3.x pylint docstring