一个ascii横幅注释生成器,用于使sub更好。
banner_comment的Python项目详细描述
[![构建状态](https://travis-ci.org/jbn/banner_comment.svg?branch=master)(https://travis ci.org/jbn/banner_comment)
[![覆盖状态](https://coveralls.io/repos/github/jbn/banner_comment/badge.svg?branch=master)“(https://coveralls.io/github/jbn/banner\u评论?分支=主)
<;!--lol:覆盖一个功能模块-->;
我喜欢代码中的横幅注释。现代的ide有更奇特的方法来实现这一点,比如代码折叠等等。而且,python风格的指南通常禁止这种风格的注释。但是,我喜欢在滚动时(或者在[`subl`]中(https://www.submitext.com/))看到大测试。
# Example
Running this:
```python
from banner_comment import *
banner_comment("hello")
```
Prints:
```
###############################################################################
# _ _ _ #
# ||__|||_#
'//()
# #
###############################################################################
```
The package also installs a command line entry point, 允许:
``` bash
横幅注释“hello”
````
你需要先安装figlet。它存在于许多包装管理者身上。例如,
``sh
brew install figlet for osx
apt get install figlet for ubuntu
````
```
[![覆盖状态](https://coveralls.io/repos/github/jbn/banner_comment/badge.svg?branch=master)“(https://coveralls.io/github/jbn/banner\u评论?分支=主)
<;!--lol:覆盖一个功能模块-->;
我喜欢代码中的横幅注释。现代的ide有更奇特的方法来实现这一点,比如代码折叠等等。而且,python风格的指南通常禁止这种风格的注释。但是,我喜欢在滚动时(或者在[`subl`]中(https://www.submitext.com/))看到大测试。
# Example
Running this:
```python
from banner_comment import *
banner_comment("hello")
```
Prints:
```
###############################################################################
# _ _ _ #
# ||__|||_#
'//()
# #
###############################################################################
```
The package also installs a command line entry point, 允许:
``` bash
横幅注释“hello”
````
你需要先安装figlet。它存在于许多包装管理者身上。例如,
``sh
brew install figlet for osx
apt get install figlet for ubuntu
````
```