prop_extraction.py 文件源码

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

项目:template-oie 作者: gabrielStanovsky 项目源码 文件源码
def path_leaf(path):
    """
    Get just the filename from the full path.
    http://stackoverflow.com/questions/8384737/extract-file-name-from-path-no-matter-what-the-os-path-format
    """
    head, tail = ntpath.split(path)
    return tail or ntpath.basename(head)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号