__init__.py 文件源码

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

项目:processtap 作者: firodj 项目源码 文件源码
def create_temp_file_name(suffix, prefix=None, dir=None):
    """small convinience function that creates temporal file.

    This function is a wrapper aroung Python built-in function - tempfile.mkstemp
    """
    if not prefix:
        prefix = tempfile.template
    fd, name = tempfile.mkstemp( suffix=suffix, prefix=prefix, dir=dir )
    file_obj = os.fdopen( fd )
    file_obj.close()
    return name
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号