do_it.py 文件源码

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

项目:process-ocean-color 作者: shaief 项目源码 文件源码
def create_file(filename):
    print(filename)
    template = getattr(templates, filename)
    target_file = os.path.join(target_directory, '{}.bsh'.format(filename))
    with open(target_file, 'w') as f:
        f.write(template.format(**arguments[filename]))
    st = os.stat(target_file)
    os.chmod(target_file, st.st_mode | stat.S_IEXEC)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号