Commit 9de892ac by BellCodeEditor

save project

parent 654bc3ba
Showing with 23 additions and 0 deletions
import turtle
t=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("purple")
t.penup()
t.goto(80,-100)
t.write("诺依,\n用Python写贺卡太棒了!\n 悟空",font=("Times",20,"normal"))
t.goto(0,0)
t.pendown()
t.color("red")
y=r.randint(3,100)
a=y/2
t.left(45)
t.begin_fill()
t.fd(y)
t.circle(a,180)
t.right(90)
t.circle(a,180)
t.fd(y)
t.end_fill()
t.seth(0)
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