mkenv.py 文件源码

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

项目:pyUBoot 作者: molejar 项目源码 文件源码
def convert(self, value, param, ctx):
        try:
            if isinstance(value, (int,)):
                return value
            else:
                return int(value, 0)
        except:
            self.fail('%s is not a valid value' % value, param, ctx)


# Create instances of custom argument types
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号