gpt4 book ai didi

python - 我可以在 pip 要求文件中添加注释吗?

转载 作者:IT老高 更新时间:2023-10-28 12:33:58 28 4
gpt4 key购买 nike

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

我在想象类似的东西

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

最佳答案

当然可以,只需使用 #

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.

关于python - 我可以在 pip 要求文件中添加注释吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9159757/

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