最近在windows上運行tensorflow的時候,出現很多stderr 的資訊,干擾了正常的輸出;所以我們需要使用操作把這些輸出屏蔽:
參考鏈接:https://support.microsoft.com/en-us/help/110930/redirecting-error-messages-from-command-prompt-stderr-stdout
總結:
- 重定向錯誤輸出:dir file.xxx 2> nul
- 重定向到檔案:dir file.xxx > output.msg 2> output.err
- 重定向到標準輸出:dir file.xxx 1> output.msg 2>&1
保持更新,轉載請注明出處;更多內容請關注cnblogs.com/xuyaowen;
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/13693.html
標籤:Windows
