Commit 24496f1f by BellCodeEditor

save project

parent 76c1144b
Showing with 23 additions and 12 deletions
import turtle import turtle
请使用turtle模块画出五角星 screen=turtle.Screen()
pen=turtle.Pen screen.bgcolor('green')
import turtle pen=turtle.Pen()
open=turtle.pen() pen.pencolor('red')
For i in range(5) pen.pensize(40)
pen.forward(200) len=100
pen.right(144) pen.left(45)
pen.hideturtle() pen.circle(len,180)
pen.done() pen.right(90)
pen.circle(len,180)
\ No newline at end of file pen.forward(2*len)
pen.left(90)
pen.forward(2*len)
pen.penup()
pen.goto(100,-100)
pen.pendown()
pen.pencolor('yellow')
pen.write("你好,\n同学们!",font=("times",40,"normal"))
pen.hideturtle()
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