<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 脚本中写“导入"会破坏我的鼠标光标,强制进行硬重置

        Just writing #39;import#39; in a python script breaks my mouse cursor forcing a hard reset(只是在 python 脚本中写“导入会破坏我的鼠标光标,强制进行硬重置)
            <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 脚本中写“导入"会破坏我的鼠标光标,强制进行硬重置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  What happens when you compare 2 pandas Series(当你比较 2 个 pandas 系列时会发生什么)
                  Quickly find differences between two large text files(快速查找两个大文本文件之间的差异)
                  Python - Compare 2 files and output differences(Python - 比较 2 个文件和输出差异)
                  Why do comparisions between very large float values fail in python?(为什么在 python 中非常大的浮点值之间的比较会失败?)
                  Dictionary merge by updating but not overwriting if value exists(字典通过更新合并,但如果值存在则不覆盖)
                  Find entries of one text file in another file in python(在python中的另一个文件中查找一个文本文件的条目)
                    <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'>

                            <tbody id='l3yEN'></tbody>