Today is watching a Python3 video tutorial, teach you to draw a pentagram,
In the console
>>>import Turtle
>>>turtle.forward (100)
>>>turtle.left (144)
>>>turtle.forward (100)
>>>turtle.left (144)
>>>turtle.forward (100)
>>>turtle.left (144)
>>>turtle.forward (100)
>>>turtle.left (144)
>>>turtle.forward (100)
Came out with a pentagram
Copy to the IDE's. py file
Import Turtle
Turtle.forward (100)
Turtle.left (144)
Turtle.forward (100)
Turtle.left (144)
Turtle.forward (100)
Turtle.left (144)
Turtle.forward (100)
Turtle.left (144)
Turtle.forward (100)
Save, run,
Unexpectedly prompt:
indentationerror:unexpected Indent
No alignment!
Incredibly python3 requirements are so strict! Remove the previous tab to run normally
This article is from the "KKMM" blog, make sure to keep this source http://lisiyun.blog.51cto.com/2779132/1983493
Python3 Turtle Use error, code not aligned