python输出接Linux管道符操作时容易出现该报错

    解决办法

    1. import signal
    2. # Solve the IOError: [Errno 32] Broken pipe
    3. signal.signal(signal.SIGPIPE, signal.SIG_DFL)