问题:我可以在点子要求文件中添加注释吗?

我想在点子要求文件中添加一些包装的注释。(只是为了解释为什么该软件包在列表中。)我可以这样做吗?

我在想像

Babel==0.9.5 # translation
CherryPy==3.2.0 # web server
Creoleparser==0.7.1 # wiki formatting
Genshi==0.5.1 # templating

I’d like to add comments for a few packages in a pip requirements file. (Just to explain why that package is on the list.) Can I do this?

I’m imagining something like

Babel==0.9.5 # translation
CherryPy==3.2.0 # web server
Creoleparser==0.7.1 # wiki formatting
Genshi==0.5.1 # templating

回答 0

当然可以,只需使用 #

pipdocs

以#开头的行被视为注释并被忽略。空格后跟#会导致#和该行的其余部分被视为注释。

Sure, you can, just use #

pip docs:

A line that begins with # is treated as a comment and ignored. Whitespace followed by a # causes the # and the remainder of the line to be treated as a comment.


回答 1


声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。