Commit 1988a748 by BellCodeEditor

save project

parent b63a1499
Showing with 18 additions and 2 deletions
print("Hello World!") #print("Hello World!")
\ No newline at end of file #导入库
import turtle
#设置画笔
p=turtle.Pen()
#改变画笔的颜色
p.fillcolor('red')
#开始填充颜色
p.begin_fill()
#画五角形
for i in range(5):
p.forward(200)
p.right(144)
#结束填充颜色
p.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