Home > other >  First use of pycharm, consult a great god
First use of pycharm, consult a great god

Time:09-27

The import turtle
Turtle. Setup (650350200200)
Turtle. Penup ()
Turtle. Fd (250)
Turtle. Pendown ()
Turtle. Pensize (25)
Turtle. Pencolor (" pink ")
Turtle. Seth (40)
For I in range (4) :
Turtle. Circle (40 reached)
Turtle. Circle (- reached 40)
Turtle. Circle (40/2)
Turtle. Fd (40)
Turtle. Circle (16180)
Turtle. Fd (40 * 2/3)
Turtle. Done
Turtle. Exitonclick ()



The following is the error message:
Turtle. Exitonclick ()
Traceback (the most recent call last) :
The File "D: \ Anaconda \ lib \ site - packages \ IPython \ core \ interactiveshell py", line 2910, in run_code
Exec (code_obj, self user_global_ns, self user_ns)
File "
Turtle. Exitonclick ()
NameError: name "turtle" is not defined

CodePudding user response:

To download ah, so you can import the import to a file is used, the console & lt; Terminal> Inside the input PIP install turtle

CodePudding user response:

Install turtle first library
  • Related