Loading

摘要: 场景 在命令行将结果重定向到文件中 python3 main.py > main.log main.log直到脚本运行结束, 才会写入结果. 对于一些比较耗时的操作, 系统实时获取脚本进度, 就需要实时将脚本的输出写入到文件中. 解决 使用unbuffer 命令, 可以实时刷新输出缓冲区. unbu 阅读全文
posted @ 2022-04-26 12:24 坠月川 阅读(281) 评论(0) 推荐(0)