久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <tfoot id='jh2Lj'></tfoot>

    <legend id='jh2Lj'><style id='jh2Lj'><dir id='jh2Lj'><q id='jh2Lj'></q></dir></style></legend>

    <small id='jh2Lj'></small><noframes id='jh2Lj'>

      <bdo id='jh2Lj'></bdo><ul id='jh2Lj'></ul>
      <i id='jh2Lj'><tr id='jh2Lj'><dt id='jh2Lj'><q id='jh2Lj'><span id='jh2Lj'><b id='jh2Lj'><form id='jh2Lj'><ins id='jh2Lj'></ins><ul id='jh2Lj'></ul><sub id='jh2Lj'></sub></form><legend id='jh2Lj'></legend><bdo id='jh2Lj'><pre id='jh2Lj'><center id='jh2Lj'></center></pre></bdo></b><th id='jh2Lj'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='jh2Lj'><tfoot id='jh2Lj'></tfoot><dl id='jh2Lj'><fieldset id='jh2Lj'></fieldset></dl></div>

        子 multiprocessing.Process 沒有打印輸出,除非程序崩

        No print output from child multiprocessing.Process unless the program crashes(子 multiprocessing.Process 沒有打印輸出,除非程序崩潰)
      1. <i id='UxRZw'><tr id='UxRZw'><dt id='UxRZw'><q id='UxRZw'><span id='UxRZw'><b id='UxRZw'><form id='UxRZw'><ins id='UxRZw'></ins><ul id='UxRZw'></ul><sub id='UxRZw'></sub></form><legend id='UxRZw'></legend><bdo id='UxRZw'><pre id='UxRZw'><center id='UxRZw'></center></pre></bdo></b><th id='UxRZw'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='UxRZw'><tfoot id='UxRZw'></tfoot><dl id='UxRZw'><fieldset id='UxRZw'></fieldset></dl></div>
          <legend id='UxRZw'><style id='UxRZw'><dir id='UxRZw'><q id='UxRZw'></q></dir></style></legend>

            <tfoot id='UxRZw'></tfoot>

                <tbody id='UxRZw'></tbody>
                • <bdo id='UxRZw'></bdo><ul id='UxRZw'></ul>

                  <small id='UxRZw'></small><noframes id='UxRZw'>

                • 本文介紹了子 multiprocessing.Process 沒有打印輸出,除非程序崩潰的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我在使用 Python 多處理模塊時遇到問題.我正在使用 Process 類來生成一個新進程,以便利用我的第二個核心.第二個過程將一堆數據加載到 RAM 中,然后耐心等待而不是消耗.

                  I am having trouble with the Python multiprocessing module. I am using the Process class to spawn a new process in order to utilize my second core. This second process loads a bunch of data into RAM and then waits patiently instead of consuming.

                  我想看看那個進程用 print 命令打印了什么,但是,我沒有看到它打印的任何東西.我只看到父進程打印的內容.現在這對我來說很有意義,因為他們生活在兩個不同的過程中.第二個進程不會產生自己的 shell/標準輸出窗口,也不會將其輸出發送到父進程.然而,當這個進程崩潰時,它會打印我的腳本告訴它打印的所有內容,以及堆棧跟蹤和錯誤.

                  I wanted to see what that process printed with the print command, however, I do not see anything that it prints. I only see what the parent process prints. Now this makes sense to me since they live in two different process. The second process doesn't spawn its own shell/standard output window, nor is its output sent to the parent. Yet when this process crashs, it prints everything that my script told it to print, plus the stack trace and error.

                  我想知道是否有一種簡單的方法可以將子進程的打印輸出發送到第一個進程,或者讓它產生一個 shell/標準輸出,以便我可以調試它.我知道我可以創建一個 multiprocessing.Queue 專用于將打印傳輸到父級,以便它可以將這些打印到標準輸出,但如果存在更簡單的解決方案,我不想這樣做.

                  I am wondering if there is a simple way to send the child process's print output to the first process, or have it spawn a shell/standard output so that I may debug it. I know I could create a multiprocessing.Queue dedicated to transmitting prints to the parent so that it may print these to standard output, but I do not feel like doing this if a simpler solution exists.

                  推薦答案

                  你試過刷新標準輸出嗎?

                  Have you tried flushing stdout?

                  import sys
                  print "foo"
                  sys.stdout.flush()
                  

                  這篇關于子 multiprocessing.Process 沒有打印輸出,除非程序崩潰的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How to bind a function to an Action from Qt menubar?(如何將函數綁定到 Qt 菜單欄中的操作?)
                  PyQt progress jumps to 100% after it starts(PyQt 啟動后進度躍升至 100%)
                  How to set yaxis tick label in a fixed position so that when i scroll left or right the yaxis tick label should be visible?(如何將 yaxis 刻度標簽設置在固定位置,以便當我向左或向右滾動時,yaxis 刻度標簽應該可見
                  `QImage` constructor has unknown keyword `data`(`QImage` 構造函數有未知關鍵字 `data`)
                  Change x-axis ticks to custom strings(將 x 軸刻度更改為自定義字符串)
                  How to show progress bar while saving file to excel in python?(如何在python中將文件保存為excel時顯示進度條?)
                    <tfoot id='87kl2'></tfoot>

                    • <i id='87kl2'><tr id='87kl2'><dt id='87kl2'><q id='87kl2'><span id='87kl2'><b id='87kl2'><form id='87kl2'><ins id='87kl2'></ins><ul id='87kl2'></ul><sub id='87kl2'></sub></form><legend id='87kl2'></legend><bdo id='87kl2'><pre id='87kl2'><center id='87kl2'></center></pre></bdo></b><th id='87kl2'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='87kl2'><tfoot id='87kl2'></tfoot><dl id='87kl2'><fieldset id='87kl2'></fieldset></dl></div>

                        • <bdo id='87kl2'></bdo><ul id='87kl2'></ul>

                              <tbody id='87kl2'></tbody>

                            <legend id='87kl2'><style id='87kl2'><dir id='87kl2'><q id='87kl2'></q></dir></style></legend>
                          1. <small id='87kl2'></small><noframes id='87kl2'>

                          2. 主站蜘蛛池模板: 欧美v在线 | 国产一区二区三区在线 | 日韩在线一区二区 | 青青伊人久久 | xnxx 日本免费 | 精品视频在线观看 | 欧美日韩亚洲国产 | 大象视频一区二区 | 性色视频 | 天天草视频 | 一区二区三区视频在线观看 | 欧美另类视频 | h视频在线免费 | 91久久久久久久久 | 久久不射网 | 天天夜碰日日摸日日澡 | 日韩波多野结衣 | 欧美vide| 免费成人国产 | 日韩国产专区 | 日韩一区二区三区在线视频 | www国产精| 91色站| 久久综合一区 | 日本久久久一区二区三区 | 国产成人免费视频网站高清观看视频 | 99riav国产一区二区三区 | 成人免费av | 成人精品视频在线观看 | 色999日韩 | com.国产 | 欧美久久一区二区三区 | 免费av电影网站 | 国产在线视频在线观看 | 久草免费在线 | 久久99久久99精品免视看婷婷 | 国产精品99久久久久久久久久久久 | 国内精品久久精品 | 美人の美乳で授乳プレイ | 久久com| 欧美精品一区二区三区在线 |