admin管理员组

文章数量:1290959

I get a error message when I import the turtle module

Traceback (most recent call last):
  File "/home/nooby_steve/.var/app/com.jetbrains.PyCharm-Community/config/JetBrains/PyCharmCE2024.3/light-edit/test.py", line 1, in <module>
    import turtle
ModuleNotFoundError: No module named 'turtle'

Process finished with exit code 1

I tried this:

import turtle

wn = turtle.Screen()
alex = turtle.Turtle()
alex.forward(150)
alex.left(90)
alex.forward(75)
wn.exitonclick()

本文标签: how to use turtle module on pycharmStack Overflow