Commit 5244f099 by BellCodeEditor

save project

parent cfc8c1cc
Showing with 21 additions and 15 deletions
import turtle
open=turtle.pen()
\ No newline at end of file
import turtle
col = input("什么颜色")
pen = turtle.pen()
pen.fillcolor(col)
pen.beain_fill()
for i in range(5):
pen.forwurd(200)
pen.left(144)
pen.end_fill()
turtle.done()
\ No newline at end of file
"""
请使用turtle模块画出五角星
"""
import turtle import turtle
pen=turtle.pen() col = input("什么颜色")
For i in range(5) pen = turtle.pen()
pen.forward(200) pen.fillcolor(col)
pen.right(144) pen.beain_fill()
pen.hideturtle() for i in range(5):
pen. pen.forwurd(200)
pen.done() pen.left(144)
pen.end_fill()
\ No newline at end of file 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