Commit 1638c124 by BellCodeEditor

auto save

parent 07858a54
Showing with 26 additions and 0 deletions
import turtle
import random as r
t=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("blue")
t.penup()
t.goto(80,-100)
t.write("诺依,\n用Python写贺卡太棒了!\nPython真好用!\n 悟空",font=("Times",20,"normal"))
t.goto(0,0)
t.pendown()
t.color("red")
y=screen.textinput("提示","你想要多大的爱心?")
y=int(y)
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)
t.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