Commit 24496f1f by BellCodeEditor

save project

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