gpt4 book ai didi

python - PEP257 - D212 和 D213 冲突?

转载 作者:太空狗 更新时间:2023-10-30 00:59:02 26 4
gpt4 key购买 nike

我正在尝试在 python 文件之上的文档字符串上使用探矿者。

这是我的文档字符串的示例:

"""item_exporters.py contains Scrapy item exporters.

Once you have scraped your items, you often want to persist or export those items, to use the data in some other
application. That is, after all, the whole purpose of the scraping process.

For this purpose Scrapy provides a collection of Item Exporters for different output formats, such as XML, CSV or JSON.

More Info:
https://doc.scrapy.org/en/latest/topics/exporters.html

"""

它有一个问题:

pep257: D213 / Multi-line docstring summary should start at the second line

因此我将第一行向下移动,它将从第二行开始:

"""
item_exporters.py contains Scrapy item exporters.

Once you have scraped your items, you often want to persist or export those items, to use the data in some other
application. That is, after all, the whole purpose of the scraping process.

For this purpose Scrapy provides a collection of Item Exporters for different output formats, such as XML, CSV or JSON.

More Info:
https://doc.scrapy.org/en/latest/topics/exporters.html

"""

然后,如果我再次运行探矿者,我会得到 D212 作为错误。

pep257: D212 / Multi-line docstring summary should start at the first line

D212和D213有问题吗?

最佳答案

关于python - PEP257 - D212 和 D213 冲突?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45990301/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com