command.py 文件源码

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

项目:jiveplot 作者: haavee 项目源码 文件源码
def __init__(self, p):
        super(readkbd, self).__init__(p)
        self.prompt   = p
        self.controlc = None
        # we want readline completer to give us the "/" as well!
        readline.set_completer_delims( readline.get_completer_delims().replace("/", "").replace("-","") )
        print "+++++++++++++++++++++ Welcome to cli +++++++++++++++++++"
        print "$Id: command.py,v 1.16 2015-11-04 13:30:10 jive_cc Exp $"
        print "  'exit' exits, 'list' lists, 'help' helps "

    # add the iterator protocol (the context protocol is supplied by newhistory)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号