• <small id='uHEI8'></small><noframes id='uHEI8'>

        <bdo id='uHEI8'></bdo><ul id='uHEI8'></ul>

        <tfoot id='uHEI8'></tfoot>
        <legend id='uHEI8'><style id='uHEI8'><dir id='uHEI8'><q id='uHEI8'></q></dir></style></legend>
      1. <i id='uHEI8'><tr id='uHEI8'><dt id='uHEI8'><q id='uHEI8'><span id='uHEI8'><b id='uHEI8'><form id='uHEI8'><ins id='uHEI8'></ins><ul id='uHEI8'></ul><sub id='uHEI8'></sub></form><legend id='uHEI8'></legend><bdo id='uHEI8'><pre id='uHEI8'><center id='uHEI8'></center></pre></bdo></b><th id='uHEI8'></th></span></q></dt></tr></i><div id='uHEI8'><tfoot id='uHEI8'></tfoot><dl id='uHEI8'><fieldset id='uHEI8'></fieldset></dl></div>
      2. 在 Windows 中终止子进程,访问被拒绝

        时间:2023-07-21
          <tbody id='JShEj'></tbody>
        <i id='JShEj'><tr id='JShEj'><dt id='JShEj'><q id='JShEj'><span id='JShEj'><b id='JShEj'><form id='JShEj'><ins id='JShEj'></ins><ul id='JShEj'></ul><sub id='JShEj'></sub></form><legend id='JShEj'></legend><bdo id='JShEj'><pre id='JShEj'><center id='JShEj'></center></pre></bdo></b><th id='JShEj'></th></span></q></dt></tr></i><div id='JShEj'><tfoot id='JShEj'></tfoot><dl id='JShEj'><fieldset id='JShEj'></fieldset></dl></div>

          <legend id='JShEj'><style id='JShEj'><dir id='JShEj'><q id='JShEj'></q></dir></style></legend>
          <tfoot id='JShEj'></tfoot>

                • <bdo id='JShEj'></bdo><ul id='JShEj'></ul>

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

                • 本文介绍了在 Windows 中终止子进程,访问被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  -

                  import time
                  import subprocess
                  from os.path import expanduser
                  
                  chrome_path = expanduser('~Local SettingsApplication DataGoogleChromeApplicationchrome.exe')
                  
                  proc = subprocess.Popen(chrome_path)
                  time.sleep(4)
                  proc.terminate()
                  

                  输出:WindowsError: [错误 5] 访问被拒绝

                  如何终止 Chrome 进程?

                  How can I kill the Chrome process?

                  Windows XP 上的 Python 2.6.

                  Python 2.6 on Windows XP.

                  推荐答案

                  如果你使用 TASKKILL/F/PID [number of process ID] 会发生什么?试一试.通过导入操作系统启动它

                  what happens if you use TASKKILL /F /PID [number of process ID] ? Give it a try. Launch it through import OS

                  这篇关于在 Windows 中终止子进程,访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:我可以在 Python 中将 io.BytesIO() 流通过管道传输到 subprocess.popen() 吗? 下一篇:如何在 Windows 中使用子进程

                  相关文章

                  • <bdo id='kzn6j'></bdo><ul id='kzn6j'></ul>

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

                    1. <tfoot id='kzn6j'></tfoot>

                      <legend id='kzn6j'><style id='kzn6j'><dir id='kzn6j'><q id='kzn6j'></q></dir></style></legend>
                    2. <i id='kzn6j'><tr id='kzn6j'><dt id='kzn6j'><q id='kzn6j'><span id='kzn6j'><b id='kzn6j'><form id='kzn6j'><ins id='kzn6j'></ins><ul id='kzn6j'></ul><sub id='kzn6j'></sub></form><legend id='kzn6j'></legend><bdo id='kzn6j'><pre id='kzn6j'><center id='kzn6j'></center></pre></bdo></b><th id='kzn6j'></th></span></q></dt></tr></i><div id='kzn6j'><tfoot id='kzn6j'></tfoot><dl id='kzn6j'><fieldset id='kzn6j'></fieldset></dl></div>