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

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

        <tfoot id='RbB5k'></tfoot>

          <bdo id='RbB5k'></bdo><ul id='RbB5k'></ul>
      1. 只是在 python 脚本中写“导入"会破坏我的鼠标光标,强制进行硬重置

        时间:2023-11-08
            <tbody id='7vmgW'></tbody>
            <bdo id='7vmgW'></bdo><ul id='7vmgW'></ul>

              <small id='7vmgW'></small><noframes id='7vmgW'>

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

                • 本文介绍了只是在 python 脚本中写“导入"会破坏我的鼠标光标,强制进行硬重置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我对此完全感到困惑.. 尝试在我的 Debian Stretch 系统上编写 python 脚本,但在运行 4 行脚本后,我的鼠标光标会变成十字并阻止任何点击操作,并迫使我努力按住关闭按钮重置系统!

                  I'm totally baffled by this.. Trying to code a python script on my Debian Stretch system but after running a 4 lined script my mouse cursor would turn into a cross and blocking any click actions from working and forcing me to hard reset the system by holding the off button!

                  我测试了几次,发现我的脚本只需要包含一个导入就可以破坏它,没有别的 - 字面意思是单行:

                  I tested a few times and found out that my script just needs to contain an import for it to break, nothing else - literally a one-lined:

                  import pxssh
                  

                  然后运行

                  ./bug.py 
                  

                  系统坏了.鼠标光标看起来像一个十字,不能点击任何地方.需要硬重置.

                  System broken. Mouse cursor looks like a cross and cannot click anywhere. Hard reset required.

                  我发现其他人似乎有完全相同的问题,有一张上传的图片,但我不知道是否是 python 为他/她造成的.https://askubuntu.com/questions/918261/why-does-my-cursor-keep-chang-to-a-black-cross-and-how-do-i-revert-it

                  I found someone else with what appears to be the exact same issue, there's an uploaded image of it but I don't know if it was python causing it for him/her. https://askubuntu.com/questions/918261/why-does-my-cursor-keep-changing-to-a-black-cross-and-how-do-i-revert-it

                  如果我使用我的键盘并再次重新运行它,我会收到此错误:

                  If I use my keyboard and re-run it again, I get this error:

                  import-im6.q16: unable to grab mouse `': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/9182.
                  

                  推荐答案

                  你没有运行 Python!您不小心将其作为 shell 脚本运行.运行它

                  You're not running Python! You're accidentally running this as a shell script. Run it as

                  python bug.py
                  

                  或包括 shebang 行:

                  or include the shebang line:

                  #!/usr/bin/env python
                  

                  目前,您似乎正在运行一个 完全不相关的程序,名为 import,专为截屏而设计.

                  Currently, you seem to be running a completely unrelated program named import, designed for screen capture.

                  这篇关于只是在 python 脚本中写“导入"会破坏我的鼠标光标,强制进行硬重置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:easy_install 或 pip install 找不到包 下一篇:无法安装 python 模块“pycrypto"在 Debian 上

                  相关文章

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

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

                      <tfoot id='l3yEN'></tfoot>

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