rotational.py 文件源码

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

项目:sail 作者: GemHunt 项目源码 文件源码
def create_shell_script(filename, shell_script):
    shell_script = '#!/bin/bash\n' + 'echo Entered ' + filename + '\n' + shell_script
    shell_script = shell_script + 'echo Exited ' + filename + '\n'

    with open(filename, 'w') as file_:
        file_.write(shell_script)
    fd = os.open(filename, os.O_RDONLY)
    os.fchmod(fd, 0755)
    os.close(fd)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号