colorize.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:colorize 作者: BruXy 项目源码 文件源码
def print_help():
    """Print help encoded as initial script's comment between #< and #>."""
    show_line = False
    fp = open(sys.argv[0], 'r')

    for line in fp:
        if line[0:2] == '#<':  # start token
            show_line = True
            continue
        elif line[0:2] == '#>':  # end token
            return

        if show_line == True:
            print(line.rstrip(os.linesep)[1:])

    fp.close()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号