fypp.py 文件源码

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

项目:fypp 作者: aradi 项目源码 文件源码
def _get_smart_fold_pos(line, start, end):
        linelen = end - start
        ispace = line.rfind(' ', start, end)
        # The space we waste for smart folding should be max. 1/3rd of the line
        if ispace != -1 and ispace >= start + (2 * linelen) // 3:
            return ispace
        else:
            return end
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号