python类choice()的实例源码

plot_directive.py 文件源码 项目:icing 作者: slipguru 项目源码 文件源码 阅读 27 收藏 0 点赞 0 评论 0
def _option_align(arg):
    return directives.choice(arg, ("top", "middle", "bottom", "left", "center",
                                   "right"))
plot_directive.py 文件源码 项目:tensorly 作者: tensorly 项目源码 文件源码 阅读 20 收藏 0 点赞 0 评论 0
def _option_format(arg):
    return directives.choice(arg, ('python', 'lisp'))
plot_directive.py 文件源码 项目:tensorly 作者: tensorly 项目源码 文件源码 阅读 26 收藏 0 点赞 0 评论 0
def _option_align(arg):
    return directives.choice(arg, ("top", "middle", "bottom", "left", "center",
                                   "right"))
parts.py 文件源码 项目:blackmamba 作者: zrzka 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
def backlinks(arg):
        value = directives.choice(arg, Contents.backlinks_values)
        if value == 'none':
            return None
        else:
            return value
tables.py 文件源码 项目:blackmamba 作者: zrzka 项目源码 文件源码 阅读 31 收藏 0 点赞 0 评论 0
def align(argument):
    return directives.choice(argument, ('left', 'center', 'right'))
images.py 文件源码 项目:blackmamba 作者: zrzka 项目源码 文件源码 阅读 22 收藏 0 点赞 0 评论 0
def align(argument):
        # This is not callable as self.align.  We cannot make it a
        # staticmethod because we're saving an unbound method in
        # option_spec below.
        return directives.choice(argument, Image.align_values)
images.py 文件源码 项目:blackmamba 作者: zrzka 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
def align(argument):
        return directives.choice(argument, Figure.align_h_values)
symbolator_sphinx.py 文件源码 项目:symbolator 作者: kevinpt 项目源码 文件源码 阅读 20 收藏 0 点赞 0 评论 0
def align_spec(argument):
    # type: (Any) -> bool
    return directives.choice(argument, ('left', 'center', 'right'))
parts.py 文件源码 项目:RST-vscode 作者: tht13 项目源码 文件源码 阅读 16 收藏 0 点赞 0 评论 0
def backlinks(arg):
        value = directives.choice(arg, Contents.backlinks_values)
        if value == 'none':
            return None
        else:
            return value
tables.py 文件源码 项目:RST-vscode 作者: tht13 项目源码 文件源码 阅读 22 收藏 0 点赞 0 评论 0
def align(argument):
    return directives.choice(argument, ('left', 'center', 'right'))
images.py 文件源码 项目:RST-vscode 作者: tht13 项目源码 文件源码 阅读 22 收藏 0 点赞 0 评论 0
def align(argument):
        # This is not callable as self.align.  We cannot make it a
        # staticmethod because we're saving an unbound method in
        # option_spec below.
        return directives.choice(argument, Image.align_values)
images.py 文件源码 项目:RST-vscode 作者: tht13 项目源码 文件源码 阅读 24 收藏 0 点赞 0 评论 0
def align(argument):
        return directives.choice(argument, Figure.align_h_values)
plot_directive.py 文件源码 项目:opcsim 作者: dhhagan 项目源码 文件源码 阅读 25 收藏 0 点赞 0 评论 0
def _option_format(arg):
    return directives.choice(arg, ('python', 'doctest'))
plot_directive.py 文件源码 项目:opcsim 作者: dhhagan 项目源码 文件源码 阅读 23 收藏 0 点赞 0 评论 0
def _option_align(arg):
    return directives.choice(arg, ("top", "middle", "bottom", "left", "center",
                                   "right"))
pygments_code_block_directive.py 文件源码 项目:deviation-manual 作者: DeviationTX 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def csharp_unicodelevel(argument):
    return directives.choice(argument, ('none', 'basic', 'full'))
pygments_code_block_directive.py 文件源码 项目:deviation-manual 作者: DeviationTX 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
def lhs_litstyle(argument):
    return directives.choice(argument, ('bird', 'latex'))
pygments_code_block_directive.py 文件源码 项目:deviation-manual 作者: DeviationTX 项目源码 文件源码 阅读 20 收藏 0 点赞 0 评论 0
def raw_compress(argument):
    return directives.choice(argument, ('gz', 'bz2'))




# Register Directive
# ------------------
# ::
parts.py 文件源码 项目:tf_aws_ecs_instance_draining_on_scale_in 作者: terraform-community-modules 项目源码 文件源码 阅读 16 收藏 0 点赞 0 评论 0
def backlinks(arg):
        value = directives.choice(arg, Contents.backlinks_values)
        if value == 'none':
            return None
        else:
            return value
tables.py 文件源码 项目:tf_aws_ecs_instance_draining_on_scale_in 作者: terraform-community-modules 项目源码 文件源码 阅读 22 收藏 0 点赞 0 评论 0
def align(argument):
    return directives.choice(argument, ('left', 'center', 'right'))
images.py 文件源码 项目:tf_aws_ecs_instance_draining_on_scale_in 作者: terraform-community-modules 项目源码 文件源码 阅读 24 收藏 0 点赞 0 评论 0
def align(argument):
        # This is not callable as self.align.  We cannot make it a
        # staticmethod because we're saving an unbound method in
        # option_spec below.
        return directives.choice(argument, Image.align_values)


问题


面经


文章

微信
公众号

扫码关注公众号