Python错误:close failed in file object destructor

我遇到的情况: 
二进制程序调shell再调Python后,shell退出,Python进程挂到init上(不是僵尸进程),但 
此时二进制程序未退出,这时候中断而二进制程序出现此提示。

经查询: 
应该是Python程序的stdout出错,最好输出到文件,不要输出到stdout。 
其次,也可以忽略此信息,不会影响程序运行。

参考:https://github.com/jeroenjanssens/data-science-at-the-command-line/issues/35

posted on 2017-12-08 15:21  willaty  阅读(4697)  评论(0编辑  收藏  举报

导航