Traceback (most recent call last):
File "C:\Users\User\PycharmProjects\PythonProject\turtle1.py", line 2, in
t = Turtle()
File "C:\Users\User\AppData\Local\Programs\Python\Python313\Lib\turtle.py", line 3844, in __init__
Turtle._screen = Screen()
~~~~~~^^
File "C:\Users\User\AppData\Local\Programs\Python\Python313\Lib\turtle.py", line 3699, in Screen
Turtle._screen = _Screen()
~~~~~~~^^
File "C:\Users\User\AppData\Local\Programs\Python\Python313\Lib\turtle.py", line 3710, in __init__
_Screen._root = self._root = _Root()
~~~~~^^
File "C:\Users\User\AppData\Local\Programs\Python\Python313\Lib\turtle.py", line 429, in __init__
TK.Tk.__init__(self)
~~~~~~~~~~~~~~^^^^^^
File "C:\Users\User\AppData\Local\Programs\Python\Python313\Lib\tkinter\__init__.py", line 2459, in __init__
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_tkinter.TclError: Can't find a usable init.tcl in the following directories:
C:/Users/User/AppData/Local/Programs/Python/Python313/lib/tcl8.6 C:/Users/User/PycharmProjects/PythonProject/.venv/lib/tcl8.6 C:/Users/User/PycharmProjects/PythonProject/lib/tcl8.6 C:/Users/User/PycharmProjects/PythonProject/.venv/library C:/Users/User/PycharmProjects/PythonProject/library C:/Users/User/PycharmProjects/PythonProject/tcl8.6.14/library C:/Users/User/PycharmProjects/tcl8.6.14/library
This probably means that Tcl wasn't installed properly.
< /code>
Hier ist das Skript < /p>
from turtle import Turtle
t = Turtle()
t.color('red')
t.pensize(5)
t.shape('turtle')
Versuchen Sie, Schildkröte in Python zu lernen, aber wenn ich versuche, das Skript auszuführen, taucht ein Fehler auf: < /p> [code]Traceback (most recent call last): File "C:\Users\User\PycharmProjects\PythonProject\turtle1.py", line 2, in t = Turtle() File "C:\Users\User\AppData\Local\Programs\Python\Python313\Lib\turtle.py", line 3844, in __init__ Turtle._screen = Screen() ~~~~~~^^ File "C:\Users\User\AppData\Local\Programs\Python\Python313\Lib\turtle.py", line 3699, in Screen Turtle._screen = _Screen() ~~~~~~~^^ File "C:\Users\User\AppData\Local\Programs\Python\Python313\Lib\turtle.py", line 3710, in __init__ _Screen._root = self._root = _Root() ~~~~~^^ File "C:\Users\User\AppData\Local\Programs\Python\Python313\Lib\turtle.py", line 429, in __init__ TK.Tk.__init__(self) ~~~~~~~~~~~~~~^^^^^^ File "C:\Users\User\AppData\Local\Programs\Python\Python313\Lib\tkinter\__init__.py", line 2459, in __init__ self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _tkinter.TclError: Can't find a usable init.tcl in the following directories: C:/Users/User/AppData/Local/Programs/Python/Python313/lib/tcl8.6 C:/Users/User/PycharmProjects/PythonProject/.venv/lib/tcl8.6 C:/Users/User/PycharmProjects/PythonProject/lib/tcl8.6 C:/Users/User/PycharmProjects/PythonProject/.venv/library C:/Users/User/PycharmProjects/PythonProject/library C:/Users/User/PycharmProjects/PythonProject/tcl8.6.14/library C:/Users/User/PycharmProjects/tcl8.6.14/library
This probably means that Tcl wasn't installed properly. < /code> Hier ist das Skript < /p> from turtle import Turtle t = Turtle() t.color('red') t.pensize(5) t.shape('turtle') [/code]
Ich arbeite an einer KOML -Anwendung (Kotlin Multiplatform Mobile) und versuche, eine Abhängigkeitsinjektion mit Koin einzurichten. Die Android -Seite funktioniert einwandfrei, aber ich stieß auf...
Erstes Problem: Ich habe ein Pacman-Spiel erstellt und wenn ich den Code ausführe, wird ein Fehler ausgegeben, der Fehler im Titel. Ich verwende das Turtle-Modul, um dieses Spiel zu erstellen....
Ich versuche, die Größe der Schildkröte im Fenster jedes Mal zu verdoppeln, wenn ich x auf meiner Tastatur drücke. Ich habe versucht, .turtlesize(2,2,2) zu verwenden, aber das ist nicht richtig. Ich...
Ich habe ein Programm erstellt, um die Schildkrötenposition durch Drücken der Tastatur zu verschieben, aber gibt es eine Möglichkeit, sie in kleineren Pixelschritten zu verschieben?
Und ist das auch...