Commit 59faa015 by BellCodeEditor

auto save

parent c2f1308f
Showing with 67 additions and 0 deletions
import turtle
screen=turtle.Screen()
b=screen.textinput("爱心大小","请输入半径:")
a=float(b)
c=b/3*17
pen1=turtle.Pen()
pen1.pencolor("red")
pen1.fillcolor("pink")
pen1.pensize(5)
pen1.begin_fill()
pen1.up()
pen1.goto(0,-250)
pen1.down()
pen1.left(45)
pen1.forward(2*a)
pen1.circle(a,180)
pen1.right(90)
pen1.circle(a,180)
pen1.forward(a*2)
pen1.end_fill()
pen=turtle.Pen()
pen.up()
pen.goto(-170,-140)
pen.down()
pen.write("你好呀!诺依!斤斤计较!\n猜猜我是谁?\n猜不到吧!!!!!!!\n我是文科生——悟空!!!\n是不是很好玩!!!\n 祝你天天向上!!!\n 悟空书!!!\n 天书来也!",font=("Times",c,"normal"))
screen=turtle.Screen()
screen.bgcolor("light blue")
pen.hideturtle()
pen1.hideturtle()
turtle.done()
\ No newline at end of file
import turtle
screen=turtle.Screen()
screen.textinput("姓名框","你的名字:")
turtle.done()
\ No newline at end of file
import turtle
screen=turtle.Screen()
screen.textinput("","你的名字:")
a=170
pen1=turtle.Pen()
pen1.pencolor("red")
pen1.fillcolor("pink")
pen1.pensize(5)
pen1.begin_fill()
pen1.up()
pen1.goto(0,-250)
pen1.down()
pen1.left(45)
pen1.forward(2*a)
pen1.circle(a,180)
pen1.right(90)
pen1.circle(a,180)
pen1.forward(a*2)
pen1.end_fill()
pen=turtle.Pen()
pen.up()
pen.goto(-170,-110)
pen.down()
pen.write("你好呀!诺依!斤斤计较!\n猜猜我是谁?\n猜不到吧!!!!!!!\n我是文科生——悟空!!!\n是不是很好玩!!!\n 祝你天天向上!!!\n 悟空书!!!\n 天书来也!",font=("Times",30,"normal"))
screen=turtle.Screen()
screen.bgcolor("light blue")
pen.hideturtle()
pen1.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