Commit f90bb5ff by BellCodeEditor

save project

parent 0c4a0a79
Showing with 15 additions and 7 deletions
......@@ -2,8 +2,13 @@
import turtle
pen=turtle.Pen()
pen1=turtle.Pen()
pen.write("dadw\ndadadwd",font=("Times",30,"normal"))
screen=turtle.Screen()
screen.bgcolor("pink")
lovesize=screen.textinput("设置","请输入你想画的爱心的大小")
len=int(lovesize)
pen.up()
pen.goto(100,-100)
pen.write("谢谢你,诺伊\n祝你\n天天快乐",font=("Times",30,"normal"))
pen.hideturtle()
# turtle.done()
# turtle.penup()
......@@ -11,11 +16,14 @@ pen.hideturtle()
# turtle.down()
pen1.pensize(10)
pen1.pencolor("red")
pen1.fillcolor("red")
pen1.begin_fill()
pen1.left(45)
pen1.fd(100)
pen1.circle(50,180)
pen1.fd(2*len)
pen1.circle(len,180)
pen1.right(90)
pen1.circle(50,180)
pen1.fd(100)
pen1.circle(len,180)
pen1.fd(2*len)
pen1.end_fill()
pen1.hideturtle()
turtle.done()
# 利用write()帮助悟空给诺依回信吧~
import turtle
import random
screen=turtle.Screen()
screen.bgcolor("pink")
pen=turtle.Pen()
pen1=turtle.Pen()
......
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