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

        <bdo id='00zV5'></bdo><ul id='00zV5'></ul>
      1. <legend id='00zV5'><style id='00zV5'><dir id='00zV5'><q id='00zV5'></q></dir></style></legend>

        <small id='00zV5'></small><noframes id='00zV5'>

        海龟图形没有响应

        时间:2023-07-23
        <legend id='HG2Y3'><style id='HG2Y3'><dir id='HG2Y3'><q id='HG2Y3'></q></dir></style></legend>

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

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

                <tfoot id='HG2Y3'></tfoot>
                  <bdo id='HG2Y3'></bdo><ul id='HG2Y3'></ul>
                    <tbody id='HG2Y3'></tbody>

                  本文介绍了海龟图形没有响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在用Python中的turtle包创建图表,它在某种程度上是成功的,除了一个问题.一旦海龟生成了我在代码中的图表,它就会导致程序说没有响应",最终我不得不结束任务.我正在使用 Windows 7.

                  I am creating diagrams with the turtle package in Python, and it is successful to some extent, except for one problem. Once turtle generates the diagram that I have in code, it causes the program to say "Not responding" and eventually I have to end the task. I am using Windows 7.

                  你们中有人经历过这种情况或知道根本原因吗?我尝试完全重新安装 Python,但这似乎并没有影响问题.

                  Have any of you experienced this or know the root cause? I tried reinstalling Python completely, but that didn't seem to affect the problem.

                  这里有一些示例代码会导致它无法响应:

                  Here is some example code that will make it fail to respond:

                  import turtle
                  from turtle import forward, right, left
                  
                  forward(50)
                  

                  推荐答案

                  我遇到了同样的问题(我在 Win 7 上也是,然后在 Win XP 上也遇到了同样的问题),我只是想通了.

                  I had the same problem (I was on Win 7 as well, and I then got the same problem on Win XP), and I just figured it out.

                  完成后你必须说 turtle.done().

                  既然我知道了这一点,那就更有意义了,因为 Python 不知道海龟已经完成,它可能正在等待海龟的另一个命令.

                  Now that I know this, it makes more sense, because since Python doesn't know that the turtle is done, it's probably waiting for another command for the turtle.

                  这是我假设您正在使用的库的文档(在 Python 2.7 中).我就是这么想的.它说 Python 2.7,但这也适用于 Python 2.5.
                  http://docs.python.org/library/turtle.html

                  Here's the documentation (in Python 2.7) of what library I assume you're using. It's how I figured that out. It says Python 2.7 but this also works for Python 2.5.
                  http://docs.python.org/library/turtle.html

                  希望对您或其他阅读本文的人有所帮助,
                  亚历克斯

                  Hope that helps (for you or anyone else reading this),
                  Alex

                  这篇关于海龟图形没有响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:在 win7 上安装 rpy2 时遇到问题(R 2.12,Python 2.5) 下一篇:如何使用 Python 消除焦点或最小化窗口?

                  相关文章

                      <tfoot id='9lq8t'></tfoot>
                    1. <legend id='9lq8t'><style id='9lq8t'><dir id='9lq8t'><q id='9lq8t'></q></dir></style></legend>
                    2. <small id='9lq8t'></small><noframes id='9lq8t'>

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