fypp.py 文件源码

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

项目:fypp 作者: aradi 项目源码 文件源码
def handle_elif(self, span, cond):
        '''Should be called to signalize an elif directive.

        Args:
            span (tuple of int): Start and end line of the directive.
            cond (str): String representation of the branching condition.
        '''
        self._check_for_open_block(span, 'elif')
        block = self._open_blocks[-1]
        directive, _, spans = block[0:3]
        self._check_if_matches_last(directive, 'if', spans[-1], span, 'elif')
        conds, contents = block[3:5]
        conds.append(cond)
        contents.append(self._curnode)
        spans.append(span)
        self._curnode = []
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号