Commit bf15b4fe by BellCodeEditor

auto save

parent ae2e1295
Showing with 5 additions and 9 deletions
# 上节课你是这样绘制的五角星👇:
# 这节课你可以利用新学的知识自定义五角星的颜色么?
import turtle import turtle
pen=turtle.Pen a=turtle.Pen()
a=input('神莫颜色?') s=input('什么颜色')
pen.fillcolor(a) a.fillcolor(s)
pen.begin_fill() a.begin_fill()
for i in range(5): for i in range(5):
pen.forward(200)
pen.right(144)
pen.end_fill()
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