Wakari上的龟图形?

时间:2015-05-14 19:46:24

标签: python python-2.7 turtle-graphics

我正在试验在Wakari.io中运行的Python,我尝试做一些海龟图形,只是为了看看该模块是否可行。从这段代码

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-9-c761d5a63f4f> in <module>()
----> 1 import turtle
      2 t = turtle.Pen()
      3 t.forward(50)

/opt/anaconda/envs/np18py27-1.9/lib/python2.7/lib-tk/turtle.py in <module>()
    105 #print _ver
    106 
--> 107 import Tkinter as TK
    108 import types
    109 import math

/opt/anaconda/envs/np18py27-1.9/lib/python2.7/lib-tk/Tkinter.py in <module>()
     37     # Attempt to configure Tcl/Tk without requiring PATH
     38     import FixTk
---> 39 import _tkinter # If this fails your Python may not be configured for Tk
     40 tkinter = _tkinter # b/w compat for export
     41 TclError = _tkinter.TclError

ImportError: libX11.so.6: cannot open shared object file: No such file or directory

我收到以下错误消息:

for(int i=0; i<=n; i++){

如何使此代码生效? ..谢谢!

0 个答案:

没有答案