久久久久久久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 沒(méi)有打印輸出,除非程序崩

        No print output from child multiprocessing.Process unless the program crashes(子 multiprocessing.Process 沒(méi)有打印輸出,除非程序崩潰)
      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 沒(méi)有打印輸出,除非程序崩潰的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  我在使用 Python 多處理模塊時(shí)遇到問(wèn)題.我正在使用 Process 類(lèi)來(lái)生成一個(gè)新進(jìn)程,以便利用我的第二個(gè)核心.第二個(gè)過(guò)程將一堆數(shù)據(jù)加載到 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.

                  我想看看那個(gè)進(jìn)程用 print 命令打印了什么,但是,我沒(méi)有看到它打印的任何東西.我只看到父進(jìn)程打印的內(nèi)容.現(xiàn)在這對(duì)我來(lái)說(shuō)很有意義,因?yàn)樗麄兩钤趦蓚€(gè)不同的過(guò)程中.第二個(gè)進(jìn)程不會(huì)產(chǎn)生自己的 shell/標(biāo)準(zhǔn)輸出窗口,也不會(huì)將其輸出發(fā)送到父進(jìn)程.然而,當(dāng)這個(gè)進(jìn)程崩潰時(shí),它會(huì)打印我的腳本告訴它打印的所有內(nèi)容,以及堆棧跟蹤和錯(cuò)誤.

                  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.

                  我想知道是否有一種簡(jiǎn)單的方法可以將子進(jìn)程的打印輸出發(fā)送到第一個(gè)進(jìn)程,或者讓它產(chǎn)生一個(gè) shell/標(biāo)準(zhǔn)輸出,以便我可以調(diào)試它.我知道我可以創(chuàng)建一個(gè) multiprocessing.Queue 專(zhuān)用于將打印傳輸?shù)礁讣?jí),以便它可以將這些打印到標(biāo)準(zhǔn)輸出,但如果存在更簡(jiǎn)單的解決方案,我不想這樣做.

                  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.

                  推薦答案

                  你試過(guò)刷新標(biāo)準(zhǔn)輸出嗎?

                  Have you tried flushing stdout?

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

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

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

                  相關(guān)文檔推薦

                  How to bind a function to an Action from Qt menubar?(如何將函數(shù)綁定到 Qt 菜單欄中的操作?)
                  PyQt progress jumps to 100% after it starts(PyQt 啟動(dòng)后進(jìn)度躍升至 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 刻度標(biāo)簽設(shè)置在固定位置,以便當(dāng)我向左或向右滾動(dòng)時(shí),yaxis 刻度標(biāo)簽應(yīng)該可見(jiàn)
                  `QImage` constructor has unknown keyword `data`(`QImage` 構(gòu)造函數(shù)有未知關(guān)鍵字 `data`)
                  Change x-axis ticks to custom strings(將 x 軸刻度更改為自定義字符串)
                  How to show progress bar while saving file to excel in python?(如何在python中將文件保存為excel時(shí)顯示進(jìn)度條?)
                    <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. 主站蜘蛛池模板: 日韩一区二区三区在线播放 | 欧美日韩国产在线观看 | 91成人在线 | 亚洲国产成人精 | 人人爽日日躁夜夜躁尤物 | 电影在线| 亚洲天堂影院 | h在线免费观看 | 国产 91 视频| 九九热精品视频在线观看 | 精品视频一区二区三区在线观看 | 日韩欧美操| 一区二区三区四区在线视频 | 成人午夜网 | xx视频在线 | 中文字幕欧美一区二区 | 国产精品一区二区不卡 | 午夜欧美一区二区三区在线播放 | 国产精品久久久久久久久 | 在线看免费 | 国产做a爱免费视频 | 欧美视频三区 | 黄色日批视频 | 日批免费在线观看 | 91视视频在线观看入口直接观看 | 精品一区二区三区在线观看国产 | 在线看一区二区 | 少妇久久久久 | 欧美日韩一区二区在线观看 | 中文字幕电影在线观看 | 国产高清免费视频 | 国产精品自在线 | 精品免费 | 国产高清精品在线 | 久久久精品一区二区三区 | 日韩精品一区二区三区中文字幕 | 成人在线免费看 | 久久国产精品一区二区三区 | 99精品视频在线观看 | 美女一级毛片 | 亚洲永久免费观看 |