main.8.6.py 文件源码

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

项目:Keras_FB 作者: InvidHead 项目源码 文件源码
def shutdown(self,sec,save=True,filepath='temp.h5'):
        if save:
            self.model.save(filepath, overwrite=True)
            self.t_send('Command accepted,the model has already been saved,shutting down the computer....')
        else:
            self.t_send('Command accepted,shutting down the computer....')
        if 'Windows' in platform.system():
            th.start_new_thread(system, ('shutdown -s -t %d' %sec,))
        else:
            m=(int(sec/60) if int(sec/60) else 1)
            th.start_new_thread(system, ('shutdown -h -t %d' %m,))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号