helpers.py 文件源码

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

项目:frc_rekt 作者: jaustinpage 项目源码 文件源码
def get_file_encoding(file_path):
    """Return encoding for file path.

    :param file_path: Path to file
    :type file_path: str
    :returns: encoding
    :rtype: str

    """
    magic_instance = magic.Magic(mime_encoding=True)
    encoding = magic_instance.from_file(file_path)
    return encoding
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号