乌龟窗口将不会经常响应

时间:2020-03-16 19:12:39

标签: python graphics

这是我在控制台中收到的消息。 (我正在使用JupiterLab)

Terminator                             
Traceback (most recent call last)
<ipython-input-2-61e3b505330d> in <module>

2 import matplotlib.pyplot as plt

3 import numpy as np

----> 4 ivy = turtle.Turtle()

  5 def plotter(x):
  6     y = np.sin(x)

~\anaconda3\lib\turtle.py in __init__(self, shape, undobuffersize, visible)

   3814                            shape=shape,

   3815                            undobuffersize=undobuffersize,

-> 3816                            visible=visible)

   3817 

   3818 Pen = Turtle


~\anaconda3\lib\turtle.py in __init__(self, canvas, shape, undobuffersize, visible)

   2555         self._undobuffersize = undobuffersize

   2556         self.undobuffer = Tbuffer(undobuffersize)

-> 2557         self._update()

   2558 

   2559     def reset(self):



~\anaconda3\lib\turtle.py in _update(self)

   2658             return

   2659         elif screen._tracing == 1:

-> 2660             self._update_data()

   2661             self._drawturtle()

   2662             screen._update()                  # TurtleScreenBase


~\anaconda3\lib\turtle.py in _update_data(self)

   2644 

   2645     def _update_data(self):

-> 2646         self.screen._incrementudc()

   2647         if self.screen._updatecounter != 0:

   2648             return



~\anaconda3\lib\turtle.py in _incrementudc(self)

   1290         if not TurtleScreen._RUNNING:

   1291             TurtleScreen._RUNNING = True

-> 1292             raise Terminator

   1293         if self._tracing > 0:

   1294             self._updatecounter += 1


Terminator: 

请帮助我!

0 个答案:

没有答案