Commit 0bc5ae2e by BellCodeEditor

save project

parent b3c5fa31
Showing with 9 additions and 2 deletions
...@@ -4,6 +4,13 @@ ...@@ -4,6 +4,13 @@
import turtle as t import turtle as t
import time import time
t.color('red') t.color('red')
#设置填充颜色
t.fillcolor("red")
#开始填充
t.begin_fill()
for x in range(5): for x in range(5):
t.forward(100) t.forward(100)
t.right(144) t.right(144)
\ No newline at end of file #结束填充
t.end_fill()
turtle.done()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment