【求助】python
python吧
全部回复
仅看楼主
level 2
瞌睡wang 楼主
Traceback (most recent call last):
File "/Java_storage/hello/PY/snake.py", line 2, in <module>
turtle.setup(650, 350, 200, 200)
File "<string>", line 6, in setup
File "/usr/lib/python3.7/turtle.py", line 3662, in Screen
Turtle._screen = _Screen()
File "/usr/lib/python3.7/turtle.py", line 3678, in __init__
_Screen._root = self._root = _Root()
File "/usr/lib/python3.7/turtle.py", line 434, in __init__
TK.Tk.__init__(self)
File "/usr/lib/python3.7/tkinter/__init__.py", line 2023, in __init__
网页链接 = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: couldn't connect to display ":1"
2020年11月15日 02点11分 1
level 2
瞌睡wang 楼主
靠,原来是我没装turtle库
2020年11月18日 09点11分 2
level 2
turtle不是自带的吗😮
2020年11月27日 01点11分 4
tan90
2020年11月29日 06点11分
1